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 077e5ceb53..601b755768 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 @@ -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" 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 cb4a28ea5a..c8af805302 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 @@ -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 diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt index 8261df7435..bdb3e4c2f9 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt @@ -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