Interface TelegramPaymentPurposePremiumGiftCodes

Describes a purpose of a payment toward Telegram. Subtype of TelegramPaymentPurpose.

interface TelegramPaymentPurposePremiumGiftCodes {
    @type: "telegramPaymentPurposePremiumGiftCodes";
    amount: number;
    boosted_chat_id: number;
    currency: string;
    month_count: number;
    text: FormattedText;
    user_ids: number[];
}

Properties

@type: "telegramPaymentPurposePremiumGiftCodes"
amount: number

Paid amount, in the smallest units of the currency.

boosted_chat_id: number

Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none.

currency: string

ISO 4217 currency code of the payment currency.

month_count: number

Number of months the Telegram Premium subscription will be active for the users.

Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.

user_ids: number[]

Identifiers of the users which can activate the gift codes.