Represents a gift owned by a peer.
savedStarGift#dfda0499 flags:# name_hidden:flags.0?true unsaved:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true pinned_to_top:flags.12?true from_id:flags.1?Peer date:int gift:StarGift message:flags.2?TextWithEntities msg_id:flags.3?int saved_id:flags.11?long convert_stars:flags.4?long upgrade_stars:flags.6?long can_export_at:flags.7?int transfer_stars:flags.8?long can_transfer_at:flags.13?int can_resell_at:flags.14?int = SavedStarGift;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
name_hidden | flags.0?true | If set, the gift sender in from_id and the message are set only for the receiver of the gift. |
unsaved | flags.5?true | If set, the gift is not pinned on the user's profile. |
refunded | flags.9?true | 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 | flags.10?true | Only set for non-collectible gifts, if they can be upgraded to a collectible gift ». |
pinned_to_top | flags.12?true | Whether this gift is pinned on top of the user's profile page. |
from_id | flags.1?Peer | Sender of the gift (unset for anonymous gifts). |
date | int | Reception date of the gift. |
gift | StarGift | The collectible gift. |
message | flags.2?TextWithEntities | Message attached to the gift. |
msg_id | flags.3?int | For gifts received by users, ID to use in inputSavedStarGiftUser constructors. |
saved_id | flags.11?long | For gifts received by channels, ID to use in inputSavedStarGiftChat constructors. |
convert_stars | flags.4?long | 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 | flags.6?long | For non-collectible gifts, the number of Telegram Stars the user can pay to convert the gift into a collectible gift ». |
can_export_at | flags.7?int | 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 | flags.8?long | If set, indicates that the gift can be transferred » to another user by paying the specified amount of stars. |
can_transfer_at | flags.13?int | 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 | flags.14?int | 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. |
Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.
A gift received in a private chat with another user.
A gift received by a channel we own.