From dfecf93dd5161b62bb5297dac197f15f23f60c9a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 14 Aug 2024 19:51:02 +0600 Subject: [PATCH] add support of paid media in TransactionPartner.User --- .../types/payments/stars/TransactionPartner.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt index ad5191546d..4aa9e0a775 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt @@ -2,11 +2,9 @@ package dev.inmo.tgbotapi.types.payments.stars -import dev.inmo.tgbotapi.types.InvoicePayload +import dev.inmo.tgbotapi.types.* import dev.inmo.tgbotapi.types.chat.PreviewUser -import dev.inmo.tgbotapi.types.invoicePayloadField -import dev.inmo.tgbotapi.types.userField -import dev.inmo.tgbotapi.types.withdrawalStateField +import dev.inmo.tgbotapi.types.message.payments.PaidMedia import dev.inmo.tgbotapi.utils.decodeDataAndJson import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded import kotlinx.serialization.EncodeDefault @@ -43,7 +41,9 @@ sealed interface TransactionPartner { @SerialName(userField) val user: PreviewUser, @SerialName(invoicePayloadField) - val invoicePayload: InvoicePayload? = null + val invoicePayload: InvoicePayload? = null, + @SerialName(paidMediaField) + val paidMedia: List? = null ) : TransactionPartner { @EncodeDefault override val type: String = Companion.type