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 788dd7401c..077e5ceb53 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 @@ -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" 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 0041828a48..cb4a28ea5a 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 @@ -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 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 b3887e7579..8261df7435 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 @@ -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? /**