public static class TdApi.StarTransactionTypeBotSubscriptionPurchase extends TdApi.StarTransactionType
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.ProductInfo |
productInfo
Information about the bought subscription.
|
int |
subscriptionPeriod
The number of seconds between consecutive Telegram Star debitings.
|
long |
userId
Identifier of the bot or the business account user that created the subscription link.
|
| Constructor and Description |
|---|
StarTransactionTypeBotSubscriptionPurchase()
The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only.
|
StarTransactionTypeBotSubscriptionPurchase(long userId,
int subscriptionPeriod,
TdApi.ProductInfo productInfo)
The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users 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 static final int CONSTRUCTOR
public StarTransactionTypeBotSubscriptionPurchase()
public StarTransactionTypeBotSubscriptionPurchase(long userId,
int subscriptionPeriod,
TdApi.ProductInfo productInfo)
userId - Identifier of the bot or the business account user that created the subscription link.subscriptionPeriod - The number of seconds between consecutive Telegram Star debitings.productInfo - Information about the bought subscription.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object