From 29c6bb5dac0ff2db8a81ce37c1feb8a859875b8a Mon Sep 17 00:00:00 2001 From: bpavuk <75901693+bpavuk@users.noreply.github.com> Date: Thu, 17 Apr 2025 17:27:34 +0300 Subject: [PATCH] fix: made entities field optional for GiftInfo --- .../commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt index b0c77d8d38..9f413c1bc8 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt @@ -24,7 +24,7 @@ data class GiftInfo private constructor( @SerialName(textField) val text: String? = null, @SerialName(entitiesField) - val entities: RawMessageEntities, + val entities: RawMessageEntities = emptyList(), @SerialName(isPrivateField) val isPrivate: Boolean = false ) {