Interface TelegramPaymentPurposePremiumGiftCodes

The user boosting a chat by creating Telegram Premium gift codes for other users. 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 that will be automatically boosted by the users for the duration of the Premium subscription and that is administered by the user.

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, CustomEmoji, and DateTime entities are allowed.

user_ids: number[]

Identifiers of the users who can activate the gift codes.