1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-24 19:18:44 +00:00

fix on asUser fun

This commit is contained in:
InsanusMokrassar 2022-08-15 01:21:10 +06:00
parent a08d07f7b3
commit 78c224ffa8

View File

@ -38,6 +38,7 @@ fun WebAppUser.asUser() = if (isBot == true) {
firstName, firstName,
lastName ?: "", lastName ?: "",
username ?.let(::Username), username ?.let(::Username),
languageCode ?.let(::IetfLanguageCode) languageCode ?.let(::IetfLanguageCode),
isPremium = isPremium
) )
} }