From cb6127bf91efef63099b893434f773438d06a775 Mon Sep 17 00:00:00 2001 From: Bodya <75901693+bpavuk@users.noreply.github.com> Date: Sun, 13 Apr 2025 17:14:24 +0300 Subject: [PATCH] fix: `accepted_gift_types` field is not optional anymore --- .../kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 5278834c65..a2b0dd6cda 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 @@ -21,6 +21,8 @@ data class ExtendedChannelChatImpl( override val id: ChatId, @SerialName(titleField) override val title: String, + @SerialName(acceptedGiftTypesField) + override val acceptedGiftTypes: AcceptedGiftTypes, @SerialName(usernameField) override val username: Username? = null, @SerialName(activeUsernamesField) @@ -57,9 +59,7 @@ data class ExtendedChannelChatImpl( @SerialName(hasVisibleHistoryField) override val newMembersSeeHistory: Boolean = false, @SerialName(maxReactionCountField) - override val maxReactionsCount: Int = 3, - @SerialName(acceptedGiftTypesField) - override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), + override val maxReactionsCount: Int = 3 ) : ExtendedChannelChat @Serializable