Package org.drinkless.tdlib
Class TdApi.PremiumGiftPaymentOption
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PremiumGiftPaymentOption
- Enclosing class:
- TdApi
Describes an option for gifting Telegram Premium to a user. Use telegramPaymentPurposePremiumGift for out-of-store payments or payments in Telegram Stars.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
The amount to pay, in the smallest units of the currency.static final int
Identifier uniquely determining type of the object.ISO 4217 currency code for the payment.int
The discount associated with this option, as a percentage.int
Number of months the Telegram Premium subscription will be active.long
The alternative amount of Telegram Stars to pay; 0 if payment in Telegram Stars is not possible.A sticker to be shown along with the option; may be null if unknown.Identifier of the store product associated with the option. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes an option for gifting Telegram Premium to a user.PremiumGiftPaymentOption
(String currency, long amount, long starCount, int discountPercentage, int monthCount, String storeProductId, TdApi.Sticker sticker) Describes an option for gifting Telegram Premium to a 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 for the payment. -
amount
public long amountThe amount to pay, in the smallest units of the currency. -
starCount
public long starCountThe alternative amount of Telegram Stars to pay; 0 if payment in Telegram Stars is not possible. -
discountPercentage
public int discountPercentageThe discount associated with this option, as a percentage. -
monthCount
public int monthCountNumber of months the Telegram Premium subscription will be active. -
storeProductId
Identifier of the store product associated with the option. -
sticker
A sticker to be shown along with the option; may be null if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PremiumGiftPaymentOption
public PremiumGiftPaymentOption()Describes an option for gifting Telegram Premium to a user. Use telegramPaymentPurposePremiumGift for out-of-store payments or payments in Telegram Stars. -
PremiumGiftPaymentOption
public PremiumGiftPaymentOption(String currency, long amount, long starCount, int discountPercentage, int monthCount, String storeProductId, TdApi.Sticker sticker) Describes an option for gifting Telegram Premium to a user. Use telegramPaymentPurposePremiumGift for out-of-store payments or payments in Telegram Stars.- Parameters:
currency
- ISO 4217 currency code for the payment.amount
- The amount to pay, in the smallest units of the currency.starCount
- The alternative amount of Telegram Stars to pay; 0 if payment in Telegram Stars is not possible.discountPercentage
- The discount associated with this option, as a percentage.monthCount
- Number of months the Telegram Premium subscription will be active.storeProductId
- Identifier of the store product associated with the option.sticker
- A sticker to be shown along with the option; may be null if unknown.
-
-
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
-