Interface MessageGiftedStars

Telegram Stars were gifted to a user. Subtype of MessageContent.

interface MessageGiftedStars {
    @type: "messageGiftedStars";
    amount: number;
    cryptocurrency: string;
    cryptocurrency_amount: string;
    currency: string;
    gifter_user_id: number;
    receiver_user_id: number;
    star_count: number;
    sticker: Sticker;
    transaction_id: string;
}

Properties

@type: "messageGiftedStars"
amount: number

The paid amount, in the smallest units of the currency.

cryptocurrency: string

Cryptocurrency used to pay for the gift; may be empty if none.

cryptocurrency_amount: string

The paid amount, in the smallest units of the cryptocurrency; 0 if none.

currency: string

Currency for the paid amount.

gifter_user_id: number

The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing.

receiver_user_id: number

The identifier of a user that received Telegram Stars; 0 if the gift is incoming.

star_count: number

Number of Telegram Stars that were gifted.

sticker: Sticker

A sticker to be shown in the message; may be null if unknown.

transaction_id: string

Identifier of the transaction for Telegram Stars purchase; for receiver only.