From 8c9f0ae92217e4696019d2ca79376d569033b89d Mon Sep 17 00:00:00 2001 From: bpavuk Date: Sun, 7 Jul 2024 20:46:58 +0300 Subject: [PATCH] Bot API 7.7 fixed RefundedPayment data class. providerPaymentChargeId is optional --- .../kotlin/dev/inmo/tgbotapi/types/payments/RefundedPayment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/RefundedPayment.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/RefundedPayment.kt index 38d852ea1e..57da599239 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/RefundedPayment.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/RefundedPayment.kt @@ -19,5 +19,5 @@ data class RefundedPayment( @SerialName(telegramPaymentChargeIdField) val telegramPaymentChargeId: TelegramPaymentChargeId, @SerialName(providerPaymentChargeIdField) - val providerPaymentChargeId: String + val providerPaymentChargeId: String? = null ): Amounted, Currencied