Interface TelegramPaymentPurposePremiumGiveaway

The user creating a Telegram Premium giveaway. Subtype of TelegramPaymentPurpose.

interface TelegramPaymentPurposePremiumGiveaway {
    @type: "telegramPaymentPurposePremiumGiveaway";
    amount: number;
    currency: string;
    month_count: number;
    parameters: GiveawayParameters;
    winner_count: number;
}

Properties

@type: "telegramPaymentPurposePremiumGiveaway"
amount: number

Paid amount, in the smallest units of the currency.

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.

parameters: GiveawayParameters

Giveaway parameters.

winner_count: number

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