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 intIdentifier uniquely determining type of the object.intNumber of months the Telegram Premium subscription will be active.A sticker to be shown in the transaction information; may be null if unknown.longIdentifier 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 TypeMethodDescriptionintReturns 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-