Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeChannelSubscriptionSale
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeChannelSubscriptionSale
- Enclosing class:
- TdApi
public static class TdApi.StarTransactionTypeChannelSubscriptionSale
extends TdApi.StarTransactionType
The transaction is a sale of a subscription by the channel chat; for channel chats only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
The number of seconds between consecutive Telegram Star debitings.long
Identifier of the user that bought the subscription. -
Constructor Summary
ConstructorsConstructorDescriptionThe 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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
userId
public long userIdIdentifier of the user that bought the subscription. -
subscriptionPeriod
public int subscriptionPeriodThe number of seconds between consecutive Telegram Star debitings. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransactionTypeChannelSubscriptionSale
public StarTransactionTypeChannelSubscriptionSale()The transaction is a sale of a subscription by the channel chat; for channel chats only. -
StarTransactionTypeChannelSubscriptionSale
public StarTransactionTypeChannelSubscriptionSale(long userId, int subscriptionPeriod) The transaction is a sale of a subscription by the channel chat; for channel chats only.- Parameters:
userId
- Identifier of the user that bought the subscription.subscriptionPeriod
- The number of seconds between consecutive Telegram Star debitings.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-