public static class TdApi.StarTransactionTypeBotPaidMediaSale extends TdApi.StarTransactionType
| Modifier and Type | Field and Description |
|---|---|
TdApi.AffiliateInfo |
affiliate
Information about the affiliate which received commission from the transaction; may be null if none.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.PaidMedia[] |
media
The bought media.
|
java.lang.String |
payload
Bot-provided payload.
|
long |
userId
Identifier of the user that bought the media.
|
| Constructor and Description |
|---|
StarTransactionTypeBotPaidMediaSale()
The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.
|
StarTransactionTypeBotPaidMediaSale(long userId,
TdApi.PaidMedia[] media,
java.lang.String payload,
TdApi.AffiliateInfo affiliate)
The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public TdApi.PaidMedia[] media
public java.lang.String payload
public TdApi.AffiliateInfo affiliate
public static final int CONSTRUCTOR
public StarTransactionTypeBotPaidMediaSale()
public StarTransactionTypeBotPaidMediaSale(long userId,
TdApi.PaidMedia[] media,
java.lang.String payload,
TdApi.AffiliateInfo affiliate)
userId - Identifier of the user that bought the media.media - The bought media.payload - Bot-provided payload.affiliate - Information about the affiliate which received commission from the transaction; may be null if none.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object