mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-08 04:43:03 +00:00
UserId = ChatId
This commit is contained in:
1 parent
9f7a348000
commit
2b49a75a42
2 files changed
+2
-1
No files matched your search
@@ -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