Package org.drinkless.tdlib
Class TdApi.StarTransactionTypePremiumPurchase
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypePremiumPurchase
- Enclosing class:
- TdApi
The transaction is a purchase of Telegram Premium subscription; for regular users and bots only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Number of months the Telegram Premium subscription will be active.A sticker to be shown in the transaction information; may be null if unknown.long
Identifier of the user that received the Telegram Premium subscription. -
Constructor Summary
ConstructorsConstructorDescriptionThe transaction is a purchase of Telegram Premium subscription; for regular users and bots only.StarTransactionTypePremiumPurchase
(long userId, int monthCount, TdApi.Sticker sticker) The transaction is a purchase of Telegram Premium subscription; for regular users and bots 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 received the Telegram Premium subscription. -
monthCount
public int monthCountNumber of months the Telegram Premium subscription will be active. -
sticker
A sticker to be shown in the transaction information; may be null if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransactionTypePremiumPurchase
public StarTransactionTypePremiumPurchase()The transaction is a purchase of Telegram Premium subscription; for regular users and bots only. -
StarTransactionTypePremiumPurchase
The transaction is a purchase of Telegram Premium subscription; for regular users and bots only.- Parameters:
userId
- Identifier of the user that received the Telegram Premium subscription.monthCount
- Number of months the Telegram Premium subscription will be active.sticker
- A sticker to be shown in the transaction information; may be null if unknown.
-
-
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
-