java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessageGiftedPremium
- Enclosing class:
- TdApi
Telegram Premium was gifted to the user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe paid amount, in the smallest units of the currency.static final intCryptocurrency used to pay for the gift; may be empty if none.longThe paid amount, in the smallest units of the cryptocurrency.Currency for the paid amount.longThe identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous.intNumber of month 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.MessageGiftedPremium(DataInput input) Telegram Premium was gifted to the user. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, 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. -
monthCount
public int monthCountNumber of month 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 CONSTRUCTOR- 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- long The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous.currency- String Currency for the paid amount.amount- long The paid amount, in the smallest units of the currency.cryptocurrency- String Cryptocurrency used to pay for the gift; may be empty if none.cryptocurrencyAmount- long The paid amount, in the smallest units of the cryptocurrency.monthCount- int Number of month the Telegram Premium subscription will be active.sticker- Sticker A sticker to be shown in the message; may be null if unknown.
-
MessageGiftedPremium
Telegram Premium was gifted to the user.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-