From 3383bcaff3fe11c41a9d62a05da3e9da784d3fef Mon Sep 17 00:00:00 2001 From: bpavuk Date: Tue, 9 Jul 2024 13:52:53 +0300 Subject: [PATCH] Bot API 7.6 i am sleepyhead (: --- .../tgbotapi/types/payments/stars/TransactionPartner.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 0aa2b9dd5d..11c1e20722 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 @@ -38,8 +38,10 @@ sealed interface TransactionPartner { @Serializable(TransactionPartner.Companion::class) data class User( + @SerialName(userField) val user: PreviewUser, - val invoice_payload: InvoicePayload? = null + @SerialName(invoicePayloadField) + val invoicePayload: InvoicePayload? = null ) : TransactionPartner { override val type: String get() = Companion.type @@ -73,8 +75,7 @@ sealed interface TransactionPartner { val type: String, val withdrawal_state: RevenueWithdrawalState? = null, val user: PreviewUser? = null, - @SerialName(invoicePayloadField) - val invoicePayload: InvoicePayload? = null + val invoice_payload: InvoicePayload? = null ) override val descriptor: SerialDescriptor