Interface TelegramPaymentPurposeStarGiveaway

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

interface TelegramPaymentPurposeStarGiveaway {
    @type: "telegramPaymentPurposeStarGiveaway";
    amount: number;
    currency: string;
    parameters: GiveawayParameters;
    star_count: number;
    winner_count: number;
}

Properties

@type: "telegramPaymentPurposeStarGiveaway"
amount: number

Paid amount, in the smallest units of the currency.

currency: string

ISO 4217 currency code of the payment currency.

parameters: GiveawayParameters

Giveaway parameters.

star_count: number

The number of Telegram Stars to be distributed through the giveaway.

winner_count: number

The number of users to receive Telegram Stars.