Constructor: premiumGiftOption
Telegram Premium gift option
Attributes:
Name | Type | Required | Description |
---|---|---|---|
months | int | Yes | Duration of gifted Telegram Premium subscription |
currency | string | Yes | Three-letter ISO 4217 currency code |
amount | long | Yes | Price 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_url | string | Yes | An 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_product | string | Optional | An 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'];