Package org.drinkless.tdlib
Class TdApi.StorePaymentPurposePremiumGift
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StorePaymentPurpose
org.drinkless.tdlib.TdApi.StorePaymentPurposePremiumGift
- Enclosing class:
- TdApi
The user gifting Telegram Premium to another user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Paid amount, in the smallest units of the currency.static final int
Identifier uniquely determining type of the object.ISO 4217 currency code of the payment currency.Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters.long
Identifiers of the user which will receive Telegram Premium. -
Constructor Summary
ConstructorsConstructorDescriptionThe user gifting Telegram Premium to another user.StorePaymentPurposePremiumGift
(String currency, long amount, long userId, TdApi.FormattedText text) The user gifting Telegram Premium to another user. -
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
-
currency
ISO 4217 currency code of the payment currency. -
amount
public long amountPaid amount, in the smallest units of the currency. -
userId
public long userIdIdentifiers of the user which will receive Telegram Premium. -
text
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StorePaymentPurposePremiumGift
public StorePaymentPurposePremiumGift()The user gifting Telegram Premium to another user. -
StorePaymentPurposePremiumGift
public StorePaymentPurposePremiumGift(String currency, long amount, long userId, TdApi.FormattedText text) The user gifting Telegram Premium to another user.- Parameters:
currency
- ISO 4217 currency code of the payment currency.amount
- Paid amount, in the smallest units of the currency.userId
- Identifiers of the user which will receive Telegram Premium.text
- Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.
-
-
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
-