1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

add support of custom_emoji_sticker_set_name

This commit is contained in:
InsanusMokrassar 2024-02-16 21:59:10 +06:00
parent 4908bb2cfe
commit 5c13047a0b
3 changed files with 7 additions and 1 deletions

View File

@ -252,6 +252,7 @@ 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 customEmojiStickerSetNameField = "custom_emoji_sticker_set_name"
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
const val canJoinGroupsField = "can_join_groups"
const val canReadAllGroupMessagesField = "can_read_all_group_messages"

View File

@ -185,7 +185,9 @@ data class ExtendedSupergroupChatImpl(
@SerialName(hasVisibleHistoryField)
override val newMembersSeeHistory: Boolean = false,
@SerialName(unrestrictBoostsCountField)
override val unrestrictBoostsCount: Int? = null
override val unrestrictBoostsCount: Int? = null,
@SerialName(customEmojiStickerSetNameField)
override val customEmojiStickerSetName: StickerSetName? = null,
) : ExtendedSupergroupChat
@Serializable
@ -246,6 +248,8 @@ data class ExtendedForumChatImpl(
override val newMembersSeeHistory: Boolean = false,
@SerialName(unrestrictBoostsCountField)
override val unrestrictBoostsCount: Int? = null,
@SerialName(customEmojiStickerSetNameField)
override val customEmojiStickerSetName: StickerSetName? = null,
) : ExtendedForumChat
@Serializable

View File

@ -61,6 +61,7 @@ sealed interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat, Ext
val linkedChannelChatId: IdChatIdentifier?
val unrestrictBoostsCount: Int?
val location: ChatLocation?
val customEmojiStickerSetName: StickerSetName?
/**
* This field represents field "join_to_send_messages" from API