mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-03 02:13:01 +00:00
toChatId extensions adding
This commit is contained in:
1 parent
4e276846b4
commit
bdd1b9638a
2 files changed
+3
No files matched your search
@@ -20,6 +20,8 @@ val ChatId.link: String
|
||||
typealias UserId = ChatId
|
||||
|
||||
fun Identifier.toChatId(): ChatId = ChatId(this)
|
||||
fun Int.toChatId(): ChatId = toLong().toChatId()
|
||||
fun Byte.toChatId(): ChatId = toLong().toChatId()
|
||||
|
||||
@Serializable(ChatIdentifierSerializer::class)
|
||||
data class Username(
|
||||
|
||||
Reference in new issue
Block a user