Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeChannelSubscriptionPurchase
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeChannelSubscriptionPurchase
- Enclosing class:
- TdApi
public static class TdApi.StarTransactionTypeChannelSubscriptionPurchase
extends TdApi.StarTransactionType
The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the channel chat that created the subscription.static final int
Identifier uniquely determining type of the object.int
The number of seconds between consecutive Telegram Star debitings. -
Constructor Summary
ConstructorsConstructorDescriptionThe transaction is a purchase of a subscription to a channel chat by the current user; for regular users only.StarTransactionTypeChannelSubscriptionPurchase
(long chatId, int subscriptionPeriod) The transaction is a purchase of a subscription to a channel chat by the current user; for regular users 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
-
chatId
public long chatIdIdentifier of the channel chat that created 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
-
StarTransactionTypeChannelSubscriptionPurchase
public StarTransactionTypeChannelSubscriptionPurchase()The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only. -
StarTransactionTypeChannelSubscriptionPurchase
public StarTransactionTypeChannelSubscriptionPurchase(long chatId, int subscriptionPeriod) The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only.- Parameters:
chatId
- Identifier of the channel chat that created 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
-