interface GiftInfo

Describes a service message about a regular gift that was sent or received.

Properties

Information about the gift

optional
owned_gift_id: string

Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts

optional
convert_star_count: number

Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible

Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift

optional
can_be_upgraded: true

True, if the gift can be upgraded to a unique gift

optional
is_upgrade_separate: true

True, if the gift's upgrade was purchased after the gift was sent

optional
unique_gift_number: number

Unique number reserved for this gift when upgraded. See the number field in UniqueGift

optional
text: string

Text of the message that was added to the gift

Special entities that appear in the text

optional
is_private: true

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