Reference
Resources
arbitrarycallbackdatabot.py
chatmemberbot.py
contexttypesbot.py
conversationbot.py
conversationbot2.py
customwebhookbot.py
deeplinking.py
echobot.py
errorhandlerbot.py
inlinebot.py
inlinekeyboard.py
inlinekeyboard2.py
nestedconversationbot.py
passportbot.py
paymentbot.py
persistentconversationbot.py
pollbot.py
timerbot.py
webappbot.py
Project
Bases:telegram.OwnedGift
Describes a unique gift received and owned by a user or a chat.
Objects of this class are comparable in terms of equality. Two objects of this class areconsidered equal, if theirgift
andsend_date
are equal.
Available In
Added in version 22.1.
gift (telegram.UniqueGift
) – Information about the unique gift.
owned_gift_id (str
, optional) – Unique identifier of the received gift for thebot; for gifts received on behalf of business accounts only.
sender_user (telegram.User
, optional) – Sender of the gift if it is a known user.
send_date (datetime.datetime
) – Date the gift was sent asdatetime.datetime
.The default timezone of the bot is used for localization, which is UTC unlesstelegram.ext.Defaults.tzinfo
is used..
is_saved (bool
, optional) –True
, if the gift is displayed on the account’sprofile page; for gifts received on behalf of business accounts only.
can_be_transferred (bool
, optional) –True
, if the gift can be transferred toanother owner; for gifts received on behalf of business accounts only.
transfer_star_count (int
, optional) – Number of Telegram Stars that must be paidto transfer the gift; omitted if the bot cannot transfer the gift.
Optional. Unique identifier of the received gift for thebot; for gifts received on behalf of business accounts only.
Date the gift was sent asdatetime.datetime
.The default timezone of the bot is used for localization, which is UTC unlesstelegram.ext.Defaults.tzinfo
is used..
Optional.True
, if the gift is displayed on the account’sprofile page; for gifts received on behalf of business accounts only.
Optional.True
, if the gift can be transferred toanother owner; for gifts received on behalf of business accounts only.
Optional. Number of Telegram Stars that must be paidto transfer the gift; omitted if the bot cannot transfer the gift.