Interface StarGiveawayPaymentOption

Describes an option for creating Telegram Star giveaway. Use telegramPaymentPurposeStarGiveaway for out-of-store payments.

interface StarGiveawayPaymentOption {
    @type: "starGiveawayPaymentOption";
    amount: number;
    currency: string;
    is_additional?: boolean;
    is_default?: boolean;
    star_count: number;
    store_product_id: string;
    winner_options: StarGiveawayWinnerOption[];
    yearly_boost_count: number;
}

Properties

@type: "starGiveawayPaymentOption"
amount: number

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

currency: string

ISO 4217 currency code for the payment.

is_additional?: boolean

True, if the option must be shown only in the full list of payment options.

is_default?: boolean

True, if the option must be chosen by default.

star_count: number

Number of Telegram Stars that will be distributed among winners.

store_product_id: string

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

winner_options: StarGiveawayWinnerOption[]

Allowed options for the number of giveaway winners.

yearly_boost_count: number

Number of times the chat will be boosted for one year if the option is chosen.