savedStarGift
Represents a gift owned by a peer.
type tg.SavedStarGift struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
NameHidden | bool | — | If set, the gift sender in from_id and the message are set only for the receiver of the gift. |
Unsaved | bool | — | If set, the gift is not pinned on the user's profile. |
Refunded | bool | — | 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. |
CanUpgrade | bool | — | Only set for non-collectible gifts, if they can be upgraded to a collectible gift ». |
PinnedToTop | bool | — | Whether this gift is pinned on top of the user's profile page. |
UpgradeSeparate | bool | — | If set, someone already separately pre-paid for the upgrade of this gift. |
FromID | PeerClass | — | Sender of the gift (unset for anonymous gifts). |
Date | int | yes | Reception date of the gift. |
Gift | StarGiftClass | yes | The collectible gift. |
Message | TextWithEntities | — | Message attached to the gift. |
MsgID | int | — | For gifts received by users, ID to use in inputSavedStarGiftUser constructors. |
SavedID | int64 | — | For gifts received by channels, ID to use in inputSavedStarGiftChat constructors. |
ConvertStars | int64 | — | 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. |
UpgradeStars | int64 | — | 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). |
CanExportAt | 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. |
TransferStars | int64 | — | If set, indicates that the gift can be transferred » to another user by paying the specified amount of stars. |
CanTransferAt | 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. |
CanResellAt | 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. |
CollectionID | []int | — | IDs of the collections » that this gift is a part of. |
PrepaidUpgradeHash | string | — | Hash to prepay for a gift upgrade separately ». |
DropOriginalDetailsStars | int64 | — | If set, the starGiftAttributeOriginalDetails attribute of this gift may be removed by paying the specified amount of stars, see here » for the full flow. |
GiftNum | int | — | Collectible number assigned to the gift, if already known. |
CanCraftAt | int | — | If set, this gift can be used for crafting » only starting from the specified unixtime. |
References
- Official documentation
- Generated Go reference
- TL definition:
savedStarGift#41df43fc