Interface MessageGiftedGrams

TON Grams were gifted to a user. Subtype of MessageContent.

interface MessageGiftedGrams {
    @type: "messageGiftedGrams";
    gifter_user_id: number;
    gram_amount: number;
    receiver_user_id: number;
    sticker: Sticker;
    transaction_id: string;
}

Properties

@type: "messageGiftedGrams"
gifter_user_id: number

The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing.

gram_amount: number

The received Gram amount, in the smallest units of the cryptocurrency.

receiver_user_id: number

The identifier of a user who received Grams; 0 if the gift is incoming.

sticker: Sticker

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

transaction_id: string

Identifier of the transaction for Gram credit; for receiver only.