public static class TdApi.StarTransactionTypeBotSubscriptionSale 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.
|
byte[] |
invoicePayload
Invoice payload.
|
TdApi.ProductInfo |
productInfo
Information about the bought subscription.
|
int |
subscriptionPeriod
The number of seconds between consecutive Telegram Star debitings.
|
long |
userId
Identifier of the user that bought the subscription.
|
| Constructor and Description |
|---|
StarTransactionTypeBotSubscriptionSale()
The transaction is a sale of a subscription by the bot; for bots only.
|
StarTransactionTypeBotSubscriptionSale(long userId,
int subscriptionPeriod,
TdApi.ProductInfo productInfo,
byte[] invoicePayload,
TdApi.AffiliateInfo affiliate)
The transaction is a sale of a subscription 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 int subscriptionPeriod
public TdApi.ProductInfo productInfo
public byte[] invoicePayload
public TdApi.AffiliateInfo affiliate
public static final int CONSTRUCTOR
public StarTransactionTypeBotSubscriptionSale()
public StarTransactionTypeBotSubscriptionSale(long userId,
int subscriptionPeriod,
TdApi.ProductInfo productInfo,
byte[] invoicePayload,
TdApi.AffiliateInfo affiliate)
userId - Identifier of the user that bought the subscription.subscriptionPeriod - The number of seconds between consecutive Telegram Star debitings.productInfo - Information about the bought subscription.invoicePayload - Invoice 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