Interface StorePaymentPurposePremiumGiftCodes

The user 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, 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.

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.