1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-05 16:19:26 +00:00

toChatId extensions adding

This commit is contained in:
2019-06-02 22:59:24 +08:00
parent 4e276846b4
commit bdd1b9638a
2 changed files with 3 additions and 0 deletions

View File

@@ -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(