From 78c224ffa85d5259937416f9938f4d629ec31dc7 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 15 Aug 2022 01:21:10 +0600 Subject: [PATCH] fix on asUser fun --- .../src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppUser.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppUser.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppUser.kt index d2d7a1237b..facd42061e 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppUser.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppUser.kt @@ -38,6 +38,7 @@ fun WebAppUser.asUser() = if (isBot == true) { firstName, lastName ?: "", username ?.let(::Username), - languageCode ?.let(::IetfLanguageCode) + languageCode ?.let(::IetfLanguageCode), + isPremium = isPremium ) }