Raw.PremiumGiftOption
Telegram premium gift option
premiumGiftOption#74c34319 flags:# months:int currency:string amount:long bot_url:string store_product:flags.0?string = PremiumGiftOption;
export namespace Raw {
export class PremiumGiftOption {
constructor(params: {
months: number;
currency: string;
amount: bigint;
botUrl: string;
storeProduct?: string;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x74c34319
Property
months
: numberDuration of gifted telegram premium subscription
currency
: stringThree-letter iso 4217 currency code
amount
: bigintPrice 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).
botUrl
: stringAn invoice deep link to an invoice for in-app payment, using the official premium bot; may be empty if direct payment isn’t available.
storeProduct
: string or undefinedAn identifier for the app store/play store product associated with the premium gift.