1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 00:03:48 +00:00

Bot API 7.6

i am sleepyhead (:
This commit is contained in:
bpavuk 2024-07-09 13:52:53 +03:00
parent 83352dd284
commit 3383bcaff3
No known key found for this signature in database
GPG Key ID: B501D26D9DEA9CFE

View File

@ -38,8 +38,10 @@ sealed interface TransactionPartner {
@Serializable(TransactionPartner.Companion::class) @Serializable(TransactionPartner.Companion::class)
data class User( data class User(
@SerialName(userField)
val user: PreviewUser, val user: PreviewUser,
val invoice_payload: InvoicePayload? = null @SerialName(invoicePayloadField)
val invoicePayload: InvoicePayload? = null
) : TransactionPartner { ) : TransactionPartner {
override val type: String override val type: String
get() = Companion.type get() = Companion.type
@ -73,8 +75,7 @@ sealed interface TransactionPartner {
val type: String, val type: String,
val withdrawal_state: RevenueWithdrawalState? = null, val withdrawal_state: RevenueWithdrawalState? = null,
val user: PreviewUser? = null, val user: PreviewUser? = null,
@SerialName(invoicePayloadField) val invoice_payload: InvoicePayload? = null
val invoicePayload: InvoicePayload? = null
) )
override val descriptor: SerialDescriptor override val descriptor: SerialDescriptor