1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-01-07 00:09:55 +00:00

fix in SendGift

This commit is contained in:
InsanusMokrassar 2025-01-03 09:32:02 +06:00
parent a09b3809e2
commit 6a3e95c488
2 changed files with 1 additions and 3 deletions

View File

@ -1,2 +0,0 @@
package dev.inmo.tgbotapi.extensions.api.verifications

View File

@ -29,7 +29,7 @@ data class SendGift internal constructor(
@SerialName(textEntitiesField)
private val rawEntities: List<RawMessageEntity>? = null,
@SerialName(payToUpgradeField)
val upgradableToUnique: Boolean
val upgradableToUnique: Boolean = false
) : SimpleRequest<Boolean>, TextedOutput {
override val textSources: TextSourcesList? by lazy {
rawEntities ?.asTextSources(text)