mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 23:29:33 +00:00
updates in Username
This commit is contained in:
@@ -34,14 +34,14 @@ fun WebAppUser.asUser() = if (isBot == true) {
|
||||
id = UserId(id),
|
||||
firstName = firstName,
|
||||
lastName = lastName ?: "",
|
||||
username = username ?.let(::Username)
|
||||
username = username ?.let(Username::prepare)
|
||||
)
|
||||
} else {
|
||||
CommonUser(
|
||||
id = UserId(id),
|
||||
firstName = firstName,
|
||||
lastName = lastName ?: "",
|
||||
username = username ?.let(::Username),
|
||||
username = username ?.let(Username::prepare),
|
||||
ietfLanguageCode = languageCode ?.let(::IetfLang),
|
||||
isPremium = isPremium
|
||||
)
|
||||
|
Reference in New Issue
Block a user