PremiumGiveawayPaymentOption¶
Describes an option for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments
PremiumGiveawayPaymentOption(
currency: string,
amount: int53,
winner_count: int32,
month_count: int32,
store_product_id: string,
store_product_quantity: int32
) → PremiumGiveawayPaymentOption
currency¶
string
ISO 4217 currency code for Telegram Premium gift code payment
amount¶
int53
The amount to pay, in the smallest units of the currency
winner_count¶
int32
Number of users who will be able to activate the gift codes
month_count¶
int32
Number of months the Telegram Premium subscription will be active
store_product_id¶
string
Identifier of the store product associated with the option; may be empty if none
store_product_quantity¶
int32
Number of times the store product must be paid