Interface StarPaymentOption

Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments.

interface StarPaymentOption {
    @type: "starPaymentOption";
    amount: number;
    currency: string;
    is_additional?: boolean;
    star_count: number;
    store_product_id: string;
}

Properties

@type: "starPaymentOption"
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.

star_count: number

Number of Telegram Stars that will be purchased.

store_product_id: string

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