Package org.drinkless.tdlib
Class TdApi.MessageGiftedPremium
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageGiftedPremium
- Enclosing class:
- TdApi
Telegram Premium was gifted to the user.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.MessageContent
TdApi.MessageContent.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe paid amount, in the smallest units of the currency.static final intIdentifier uniquely determining type of the object.Cryptocurrency used to pay for the gift; may be empty if none.longThe paid amount, in the smallest units of the cryptocurrency; 0 if none.Currency for the paid amount.longThe identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous.intNumber of months the Telegram Premium subscription will be active.A sticker to be shown in the message; may be null if unknown. -
Constructor Summary
ConstructorsConstructorDescriptionTelegram Premium was gifted to the user.MessageGiftedPremium(long gifterUserId, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, int monthCount, TdApi.Sticker sticker) Telegram Premium was gifted to the user. -
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
-
gifterUserId
public long gifterUserIdThe identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous. -
currency
Currency for the paid amount. -
amount
public long amountThe paid amount, in the smallest units of the currency. -
cryptocurrency
Cryptocurrency used to pay for the gift; may be empty if none. -
cryptocurrencyAmount
public long cryptocurrencyAmountThe paid amount, in the smallest units of the cryptocurrency; 0 if none. -
monthCount
public int monthCountNumber of months the Telegram Premium subscription will be active. -
sticker
A sticker to be shown in the message; may be null if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageGiftedPremium
public MessageGiftedPremium()Telegram Premium was gifted to the user. -
MessageGiftedPremium
public MessageGiftedPremium(long gifterUserId, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, int monthCount, TdApi.Sticker sticker) Telegram Premium was gifted to the user.- Parameters:
gifterUserId- The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous.currency- Currency for the paid amount.amount- The paid amount, in the smallest units of the currency.cryptocurrency- Cryptocurrency used to pay for the gift; may be empty if none.cryptocurrencyAmount- The paid amount, in the smallest units of the cryptocurrency; 0 if none.monthCount- Number of months the Telegram Premium subscription will be active.sticker- A sticker to be shown in the message; 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.MessageContent- Returns:
- this.CONSTRUCTOR
-