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 TypeFieldDescriptionlongIdentifier of the channel chat that created the subscription.static final intIdentifier uniquely determining type of the object.intThe 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 TypeMethodDescriptionintReturns 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-