Interface StorePaymentPurposePremiumGiftCodes

The user boosting a chat by creating Telegram Premium gift codes for other users. Subtype of StorePaymentPurpose.

interface StorePaymentPurposePremiumGiftCodes {
    @type: "storePaymentPurposePremiumGiftCodes";
    amount: number;
    boosted_chat_id: number;
    currency: string;
    text: FormattedText;
    user_ids: number[];
}

Properties

@type: "storePaymentPurposePremiumGiftCodes"
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.

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.