public static class TdApi.StarTransactionTypeChannelSubscriptionSale extends TdApi.StarTransactionType
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
subscriptionPeriod
The number of seconds between consecutive Telegram Star debitings.
|
long |
userId
Identifier of the user that bought the subscription.
|
| Constructor and Description |
|---|
StarTransactionTypeChannelSubscriptionSale()
The transaction is a sale of a subscription by the channel chat; for channel chats only.
|
StarTransactionTypeChannelSubscriptionSale(long userId,
int subscriptionPeriod)
The transaction is a sale of a subscription by the channel chat; for channel chats 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 static final int CONSTRUCTOR
public StarTransactionTypeChannelSubscriptionSale()
public StarTransactionTypeChannelSubscriptionSale(long userId,
int subscriptionPeriod)
userId - Identifier of the user that bought the subscription.subscriptionPeriod - The number of seconds between consecutive Telegram Star debitings.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object