TransactionPartner

@Serializable
sealed class TransactionPartner

This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of

  • TransactionPartnerUser

  • TransactionPartnerFragment

  • TransactionPartnerTelegramAds

  • TransactionPartnerTelegramApi

  • TransactionPartnerOther

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "fragment")
data class Fragment(val withdrawalState: RevenueWithdrawalState? = null) : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "other")
data object Other : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "telegram_ads")
data object TelegramAds : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "telegram_api")
data class TelegramApi(val requestCount: Int) : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "user")
data class UserPartner(val user: User, val invoicePayload: String? = null, val paidMedia: List<PaidMedia>? = null, val paidMediaPayload: String? = null, val subscriptionPeriod: Duration? = null, val gift: String? = null) : TransactionPartner

Properties

Link copied to clipboard