Interface PremiumGiftCodePaymentOption

Describes an option for creating Telegram Premium gift codes or Telegram Premium giveaway. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments.

interface PremiumGiftCodePaymentOption {
    @type: "premiumGiftCodePaymentOption";
    amount: number;
    currency: string;
    discount_percentage: number;
    month_count: number;
    sticker: Sticker;
    store_product_id: string;
    store_product_quantity: number;
    winner_count: number;
}

Properties

@type: "premiumGiftCodePaymentOption"
amount: number

The amount to pay, in the smallest units of the currency.

currency: string

ISO 4217 currency code for Telegram Premium gift code payment.

discount_percentage: number

The discount associated with this option, as a percentage.

month_count: number

Number of months the Telegram Premium subscription will be active.

sticker: Sticker

A sticker to be shown along with the gift code; may be null if unknown.

store_product_id: string

Identifier of the store product associated with the option; may be empty if none.

store_product_quantity: number

Number of times the store product must be paid.

winner_count: number

Number of users which will be able to activate the gift codes.