From 6a3e95c4883b40fd0c8721ef0746d56e82de0722 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 3 Jan 2025 09:32:02 +0600 Subject: [PATCH] fix in SendGift --- .../tgbotapi/extensions/api/verifications/VerifyChatAndUser.kt | 2 -- .../kotlin/dev/inmo/tgbotapi/requests/gifts/SendGift.kt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/verifications/VerifyChatAndUser.kt diff --git a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/verifications/VerifyChatAndUser.kt b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/verifications/VerifyChatAndUser.kt deleted file mode 100644 index 8993410e31..0000000000 --- a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/verifications/VerifyChatAndUser.kt +++ /dev/null @@ -1,2 +0,0 @@ -package dev.inmo.tgbotapi.extensions.api.verifications - diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/gifts/SendGift.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/gifts/SendGift.kt index ba3c6d1556..82801bc110 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/gifts/SendGift.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/gifts/SendGift.kt @@ -29,7 +29,7 @@ data class SendGift internal constructor( @SerialName(textEntitiesField) private val rawEntities: List? = null, @SerialName(payToUpgradeField) - val upgradableToUnique: Boolean + val upgradableToUnique: Boolean = false ) : SimpleRequest, TextedOutput { override val textSources: TextSourcesList? by lazy { rawEntities ?.asTextSources(text)