SavedStarGift#
- class pyrogram.raw.types.SavedStarGift#
Represents a gift owned by a peer.
Constructor of
SavedStarGift.- Details:
Layer:
220ID:
EAD6805E
- Parameters:
date (
int32-bit) – Reception date of the gift.gift (
StarGift) – The collectible gift.name_hidden (
bool, optional) – If set, the gift sender in from_id and the message are set only for the receiver of the gift.unsaved (
bool, optional) – If set, the gift is not pinned on the user’s profile.refunded (
bool, optional) – This gift was upgraded to a collectible gift » and then re-downgraded to a regular gift because a request to refund the payment related to the upgrade was made, and the money was returned.can_upgrade (
bool, optional) – Only set for non-collectible gifts, if they can be upgraded to a collectible gift ».pinned_to_top (
bool, optional) – Whether this gift is pinned on top of the user’s profile page.upgrade_separate (
bool, optional) – If set, someone already separately pre-paid for the upgrade of this gift.from_id (
Peer, optional) – Sender of the gift (unset for anonymous gifts).message (
TextWithEntities, optional) – Message attached to the gift.msg_id (
int32-bit, optional) – For gifts received by users, ID to use in inputSavedStarGiftUser constructors.saved_id (
int64-bit, optional) – For gifts received by channels, ID to use in inputSavedStarGiftChat constructors.convert_stars (
int64-bit, optional) – For non-collectible gifts, the receiver of this gift may convert it to this many Telegram Stars, instead of displaying it on their profile page.upgrade_stars (
int64-bit, optional) – Only for pre-paid non-collectible gifts, the number of Telegram Stars the sender has already paid to convert the gift into a collectible gift » (this is different from the meaning of the flag in messageActionStarGift, where it signals the upgrade price for not yet upgraded gifts).can_export_at (
int32-bit, optional) – If set, indicates that the current gift can’t be exported to the TON blockchain » yet: the owner will be able to export it at the specified unixtime.transfer_stars (
int64-bit, optional) – If set, indicates that the gift can be transferred » to another user by paying the specified amount of stars.can_transfer_at (
int32-bit, optional) – If set, indicates that the current gift can’t be transferred » yet: the owner will be able to transfer it at the specified unixtime.can_resell_at (
int32-bit, optional) – If set, indicates that the current gift can’t be resold » yet: the owner will be able to put it up for sale at the specified unixtime.collection_id (List of
int32-bit, optional) – IDs of the collections » that this gift is a part of.prepaid_upgrade_hash (
str, optional) – Hash to prepay for a gift upgrade separately ».drop_original_details_stars (
int64-bit, optional) – N/Agift_num (
int32-bit, optional) – N/A