Interface MessageUpgradedGift

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

interface MessageUpgradedGift {
    @type: "messageUpgradedGift";
    can_be_transferred?: boolean;
    export_date: number;
    gift: UpgradedGift;
    is_saved?: boolean;
    is_upgrade?: boolean;
    transfer_star_count: number;
    was_transferred?: boolean;
}

Properties

@type: "messageUpgradedGift"
can_be_transferred?: boolean

True, if the gift can be transferred to another user; only for the receiver of the gift.

export_date: number

Point in time (Unix timestamp) when the gift can be transferred to TON blockchain as an NFT; 0 if NFT export isn't possible; only for the receiver of the gift.

The gift.

is_saved?: boolean

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

is_upgrade?: boolean

True, if the gift was obtained by upgrading of a previously received gift; otherwise, this is a transferred gift.

transfer_star_count: number

Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift.

was_transferred?: boolean

True, if the gift was transferred to another user; only for the receiver of the gift.