GiftInfo

class aiogram.types.gift_info.GiftInfo(*, gift: Gift, owned_gift_id: str | None = None, convert_star_count: int | None = None, prepaid_upgrade_star_count: int | None = None, can_be_upgraded: bool | None = None, text: str | None = None, entities: list[MessageEntity] | None = None, is_private: bool | None = None, **extra_data: Any)[source]

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

Source: https://core.telegram.org/bots/api#giftinfo

gift: Gift

Information about the gift

owned_gift_id: str | None

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

convert_star_count: int | None

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

prepaid_upgrade_star_count: int | None

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

can_be_upgraded: bool | None

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

text: str | None

Optional. Text of the message that was added to the gift

entities: list[MessageEntity] | None

Optional. Special entities that appear in the text

is_private: bool | None

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