UniqueGiftInfo¶
- class telegram.UniqueGiftInfo(gift, origin, owned_gift_id=None, transfer_star_count=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
Describes a service message about a unique gift that was sent or received.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their
gift
, andorigin
are equal.Available In
Added in version 22.1.
- Parameters:
gift (
UniqueGift
) – Information about the gift.origin (
str
) – Origin of the gift. Currently, eitherUPGRADE
orTRANSFER
.owned_gift_id (
str
, optional) – bot; only present for gifts received on behalf of business accounts.transfer_star_count (
int
, optional) – Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
- transfer_star_count[source]¶
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
- Type: