mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-23 00:57:13 +00:00
add support of unrestrict_boost_count
This commit is contained in:
parent
a01ca43837
commit
4908bb2cfe
@ -251,6 +251,7 @@ const val profileAccentColorIdField = "profile_accent_color_id"
|
||||
const val backgroundCustomEmojiIdField = "background_custom_emoji_id"
|
||||
const val profileBackgroundCustomEmojiIdField = "profile_background_custom_emoji_id"
|
||||
const val hasVisibleHistoryField = "has_visible_history"
|
||||
const val unrestrictBoostsCountField = "unrestrict_boost_count"
|
||||
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
|
||||
const val canJoinGroupsField = "can_join_groups"
|
||||
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
||||
|
@ -184,6 +184,8 @@ data class ExtendedSupergroupChatImpl(
|
||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||
@SerialName(hasVisibleHistoryField)
|
||||
override val newMembersSeeHistory: Boolean = false,
|
||||
@SerialName(unrestrictBoostsCountField)
|
||||
override val unrestrictBoostsCount: Int? = null
|
||||
) : ExtendedSupergroupChat
|
||||
|
||||
@Serializable
|
||||
@ -242,6 +244,8 @@ data class ExtendedForumChatImpl(
|
||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||
@SerialName(hasVisibleHistoryField)
|
||||
override val newMembersSeeHistory: Boolean = false,
|
||||
@SerialName(unrestrictBoostsCountField)
|
||||
override val unrestrictBoostsCount: Int? = null,
|
||||
) : ExtendedForumChat
|
||||
|
||||
@Serializable
|
||||
|
@ -59,6 +59,7 @@ sealed interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat, Ext
|
||||
val stickerSetName: StickerSetName?
|
||||
val canSetStickerSet: Boolean
|
||||
val linkedChannelChatId: IdChatIdentifier?
|
||||
val unrestrictBoostsCount: Int?
|
||||
val location: ChatLocation?
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user