Interface StorePaymentPurposeStars

The user buying Telegram Stars. Subtype of StorePaymentPurpose.

interface StorePaymentPurposeStars {
    @type: "storePaymentPurposeStars";
    amount: number;
    chat_id: number;
    currency: string;
    star_count: number;
}

Properties

@type: "storePaymentPurposeStars"
amount: number

Paid amount, in the smallest units of the currency.

chat_id: number

Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none.

currency: string

ISO 4217 currency code of the payment currency.

star_count: number

Number of bought Telegram Stars.