Link Search Menu Expand Document

Constructor: premiumGiftOption

Back to constructors index

Telegram Premium gift option

Attributes:

NameTypeRequiredDescription
monthsintYesDuration of gifted Telegram Premium subscription
currencystringYesThree-letter ISO 4217 currency code
amountlongYesPrice of the product 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).
bot_urlstringYesAn invoice deep link » to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn’t available.
store_productstringOptionalAn identifier for the App Store/Play Store product associated with the Premium gift.

Type: PremiumGiftOption

Example:

$premiumGiftOption = ['_' => 'premiumGiftOption', 'months' => int, 'currency' => 'string', 'amount' => long, 'bot_url' => 'string', 'store_product' => 'string'];