mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-16 13:49:26 +00:00
UserId = ChatId
This commit is contained in:
@@ -69,7 +69,7 @@ val UserId.userLink: String
|
||||
val User.link: String
|
||||
get() = id.userLink
|
||||
|
||||
typealias UserId = IdChatIdentifier
|
||||
typealias UserId = ChatId
|
||||
|
||||
fun Identifier.toChatId(): IdChatIdentifier = ChatId(this)
|
||||
fun Int.toChatId(): IdChatIdentifier = toLong().toChatId()
|
||||
|
Reference in New Issue
Block a user