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:
parent
4944c972a6
commit
42b32af986
@ -159,6 +159,7 @@ const val hasVisibleHistoryField = "has_visible_history"
|
|||||||
const val unrestrictBoostsCountField = "unrestrict_boost_count"
|
const val unrestrictBoostsCountField = "unrestrict_boost_count"
|
||||||
const val customEmojiStickerSetNameField = "custom_emoji_sticker_set_name"
|
const val customEmojiStickerSetNameField = "custom_emoji_sticker_set_name"
|
||||||
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
|
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
|
||||||
|
const val hasMainWebAppField = "has_main_web_app"
|
||||||
const val canJoinGroupsField = "can_join_groups"
|
const val canJoinGroupsField = "can_join_groups"
|
||||||
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
||||||
const val canReplyField = "can_reply"
|
const val canReplyField = "can_reply"
|
||||||
|
@ -308,6 +308,8 @@ data class ExtendedBot(
|
|||||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
@SerialName(maxReactionCountField)
|
@SerialName(maxReactionCountField)
|
||||||
override val maxReactionsCount: Int = 3,
|
override val maxReactionsCount: Int = 3,
|
||||||
|
@SerialName(hasMainWebAppField)
|
||||||
|
val hasMainWebApp: Boolean = false
|
||||||
) : Bot(), ExtendedChat {
|
) : Bot(), ExtendedChat {
|
||||||
@SerialName(isBotField)
|
@SerialName(isBotField)
|
||||||
private val isBot = true
|
private val isBot = true
|
||||||
|
Loading…
Reference in New Issue
Block a user