mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +00:00
add support of paid media in TransactionPartner.User
This commit is contained in:
parent
b469b1c789
commit
dfecf93dd5
@ -2,11 +2,9 @@
|
|||||||
|
|
||||||
package dev.inmo.tgbotapi.types.payments.stars
|
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.chat.PreviewUser
|
||||||
import dev.inmo.tgbotapi.types.invoicePayloadField
|
import dev.inmo.tgbotapi.types.message.payments.PaidMedia
|
||||||
import dev.inmo.tgbotapi.types.userField
|
|
||||||
import dev.inmo.tgbotapi.types.withdrawalStateField
|
|
||||||
import dev.inmo.tgbotapi.utils.decodeDataAndJson
|
import dev.inmo.tgbotapi.utils.decodeDataAndJson
|
||||||
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
||||||
import kotlinx.serialization.EncodeDefault
|
import kotlinx.serialization.EncodeDefault
|
||||||
@ -43,7 +41,9 @@ sealed interface TransactionPartner {
|
|||||||
@SerialName(userField)
|
@SerialName(userField)
|
||||||
val user: PreviewUser,
|
val user: PreviewUser,
|
||||||
@SerialName(invoicePayloadField)
|
@SerialName(invoicePayloadField)
|
||||||
val invoicePayload: InvoicePayload? = null
|
val invoicePayload: InvoicePayload? = null,
|
||||||
|
@SerialName(paidMediaField)
|
||||||
|
val paidMedia: List<PaidMedia>? = null
|
||||||
) : TransactionPartner {
|
) : TransactionPartner {
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val type: String = Companion.type
|
override val type: String = Companion.type
|
||||||
|
Loading…
Reference in New Issue
Block a user