From 42b32af986a13d8c14a92615c56d72d8761e5ee2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 1 Aug 2024 17:09:20 +0600 Subject: [PATCH] add hasMainWebApp into extended bots --- .../src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt | 1 + .../commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt index 4abe77e2e3..d8de107a3c 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt @@ -159,6 +159,7 @@ const val hasVisibleHistoryField = "has_visible_history" const val unrestrictBoostsCountField = "unrestrict_boost_count" const val customEmojiStickerSetNameField = "custom_emoji_sticker_set_name" const val iconCustomEmojiIdField = "icon_custom_emoji_id" +const val hasMainWebAppField = "has_main_web_app" const val canJoinGroupsField = "can_join_groups" const val canReadAllGroupMessagesField = "can_read_all_group_messages" const val canReplyField = "can_reply" diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt index 58419106df..5dc0f90985 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt @@ -308,6 +308,8 @@ data class ExtendedBot( override val profileBackgroundCustomEmojiId: CustomEmojiId? = null, @SerialName(maxReactionCountField) override val maxReactionsCount: Int = 3, + @SerialName(hasMainWebAppField) + val hasMainWebApp: Boolean = false ) : Bot(), ExtendedChat { @SerialName(isBotField) private val isBot = true