Interface MessageGift

A gift was received or sent by the current user. Subtype of MessageContent.

interface MessageGift {
    @type: "messageGift";
    gift: Gift;
    is_private?: boolean;
    is_saved?: boolean;
    sell_star_count: number;
    text: FormattedText;
    was_converted?: boolean;
}

Properties

@type: "messageGift"
gift: Gift

The gift.

is_private?: boolean

True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.

is_saved?: boolean

True, if the gift is displayed on the user's profile page; only for the receiver of the gift.

sell_star_count: number

Number of Telegram Stars that can be claimed by the receiver instead of the gift; 0 if the gift can't be sold by the receiver.

Message added to the gift.

was_converted?: boolean

True, if the gift was converted to Telegram Stars; only for the receiver of the gift.