String#asUsername -> String#toUsername

This commit is contained in:
InsanusMokrassar 2019-06-02 22:57:52 +08:00
parent ae7365e9e9
commit 4e276846b4
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
* `replyMarkup` field was added to the `CommonMessage` objects via `AbleToBeMarkedUp` interface
* `SwitchInlineQueryCurrentChatInlineKeyboardButton#switchInlineQueryCurrentChat` field fixed
* `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

View File

@ -32,7 +32,7 @@ data class Username(
}
}
fun String.asUsername(): Username = Username(this)
fun String.toUsername(): Username = Username(this)
@Serializer(ChatIdentifier::class)
internal class ChatIdentifierSerializer: KSerializer<ChatIdentifier> {