1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 00:03:48 +00:00

add hasMainWebApp into extended bots

This commit is contained in:
InsanusMokrassar 2024-08-01 17:09:20 +06:00
parent 4944c972a6
commit 42b32af986
2 changed files with 3 additions and 0 deletions

View File

@ -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"

View File

@ -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