Raw.MessageActionGiftPremium
Info about a gifted telegram premium subscription
messageActionGiftPremium#c83d6aec flags:# currency:string amount:long months:int crypto_currency:flags.0?string crypto_amount:flags.0?long = MessageAction;
export namespace Raw {
export class MessageActionGiftPremium {
constructor(params: {
currency: string;
amount: bigint;
months: number;
cryptoCurrency?: string;
cryptoAmount?: bigint;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xc83d6aec
Property
currency
: stringThree-letter iso 4217 currency code
amount
: bigintPrice of the gift 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).
months
: numberDuration of the gifted telegram premium subscription
cryptoCurrency
: string or undefinedIf the gift was bought using a cryptocurrency, the cryptocurrency name.
cryptoAmount
: bigint or undefinedIf the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency.