Package org.drinkless.tdlib
Class TdApi.TelegramPaymentPurposePremiumGift
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TelegramPaymentPurpose
org.drinkless.tdlib.TdApi.TelegramPaymentPurposePremiumGift
- 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, or "XTR" for payments in Telegram Stars.int
Number of months the Telegram Premium subscription will be active for the user.Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters.long
Identifier of the user which will receive Telegram Premium. -
Constructor Summary
ConstructorsConstructorDescriptionThe user gifting Telegram Premium to another user.TelegramPaymentPurposePremiumGift
(String currency, long amount, long userId, int monthCount, 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, or "XTR" for payments in Telegram Stars. -
amount
public long amountPaid amount, in the smallest units of the currency. -
userId
public long userIdIdentifier of the user which will receive Telegram Premium. -
monthCount
public int monthCountNumber of months the Telegram Premium subscription will be active for the user. -
text
Text to show to the user receiving Telegram Premium; 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
-
TelegramPaymentPurposePremiumGift
public TelegramPaymentPurposePremiumGift()The user gifting Telegram Premium to another user. -
TelegramPaymentPurposePremiumGift
public TelegramPaymentPurposePremiumGift(String currency, long amount, long userId, int monthCount, TdApi.FormattedText text) The user gifting Telegram Premium to another user.- Parameters:
currency
- ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars.amount
- Paid amount, in the smallest units of the currency.userId
- Identifier of the user which will receive Telegram Premium.monthCount
- Number of months the Telegram Premium subscription will be active for the user.text
- Text to show to the user receiving Telegram Premium; 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
-