Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeBotSubscriptionPurchase
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeBotSubscriptionPurchase
- Enclosing class:
- TdApi
public static class TdApi.StarTransactionTypeBotSubscriptionPurchase
extends TdApi.StarTransactionType
The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Information about the bought subscription.int
The number of seconds between consecutive Telegram Star debitings.long
Identifier of the bot or the business account user that created the subscription link. -
Constructor Summary
ConstructorsConstructorDescriptionThe 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. -
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 bot or the business account user that created the subscription link. -
subscriptionPeriod
public int subscriptionPeriodThe number of seconds between consecutive Telegram Star debitings. -
productInfo
Information about the bought subscription. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransactionTypeBotSubscriptionPurchase
public 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
public 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.- Parameters:
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.
-
-
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
-