mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
UserId = ChatId
This commit is contained in:
parent
9f7a348000
commit
2b49a75a42
@ -5,6 +5,7 @@
|
|||||||
* `Core`:
|
* `Core`:
|
||||||
* `ContentMessage`, `CommonMessage`, `PossiblyMediaGroupMessage` and `PossiblySentViaBotCommonMessage` got `out`
|
* `ContentMessage`, `CommonMessage`, `PossiblyMediaGroupMessage` and `PossiblySentViaBotCommonMessage` got `out`
|
||||||
variance
|
variance
|
||||||
|
* `UserId` now is `ChatId` instead of `IdChatIdentififer`
|
||||||
|
|
||||||
## 4.1.2
|
## 4.1.2
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ val UserId.userLink: String
|
|||||||
val User.link: String
|
val User.link: String
|
||||||
get() = id.userLink
|
get() = id.userLink
|
||||||
|
|
||||||
typealias UserId = IdChatIdentifier
|
typealias UserId = ChatId
|
||||||
|
|
||||||
fun Identifier.toChatId(): IdChatIdentifier = ChatId(this)
|
fun Identifier.toChatId(): IdChatIdentifier = ChatId(this)
|
||||||
fun Int.toChatId(): IdChatIdentifier = toLong().toChatId()
|
fun Int.toChatId(): IdChatIdentifier = toLong().toChatId()
|
||||||
|
Loading…
Reference in New Issue
Block a user