mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
String#asUsername -> String#toUsername
This commit is contained in:
parent
ae7365e9e9
commit
4e276846b4
@ -6,6 +6,7 @@
|
|||||||
* `replyMarkup` field was added to the `CommonMessage` objects via `AbleToBeMarkedUp` interface
|
* `replyMarkup` field was added to the `CommonMessage` objects via `AbleToBeMarkedUp` interface
|
||||||
* `SwitchInlineQueryCurrentChatInlineKeyboardButton#switchInlineQueryCurrentChat` field fixed
|
* `SwitchInlineQueryCurrentChatInlineKeyboardButton#switchInlineQueryCurrentChat` field fixed
|
||||||
* `InlineKeyboardButton` now is sealed class and all its possible realisations are inside of its class file
|
* `InlineKeyboardButton` now is sealed class and all its possible realisations are inside of its class file
|
||||||
|
* `String#asUsername` method renamed to `String#toUsername`
|
||||||
|
|
||||||
## 0.15.0
|
## 0.15.0
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ data class Username(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun String.asUsername(): Username = Username(this)
|
fun String.toUsername(): Username = Username(this)
|
||||||
|
|
||||||
@Serializer(ChatIdentifier::class)
|
@Serializer(ChatIdentifier::class)
|
||||||
internal class ChatIdentifierSerializer: KSerializer<ChatIdentifier> {
|
internal class ChatIdentifierSerializer: KSerializer<ChatIdentifier> {
|
||||||
|
Loading…
Reference in New Issue
Block a user