PremiumGiftCodeOption
- class pyrogram.raw.types.PremiumGiftCodeOption
Contains info about a giveaway/gift option.
Constructor of
PremiumGiftCodeOption
.- Details:
Layer:
194
ID:
257E962B
- Parameters:
users (
int
32-bit
) – Number of users which will be able to activate the gift codes.months (
int
32-bit
) – Duration in months of each gifted Telegram Premium subscription.currency (
str
) – Three-letter ISO 4217 currency codeamount (
int
64-bit
) – Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).store_product (
str
, optional) – Identifier of the store product associated with the option, official apps only.store_quantity (
int
32-bit
, optional) – Number of times the store product must be paid
- Functions:
This object can be returned by 1 function.
Obtain a list of Telegram Premium giveaway/gift code » options.