Skip to main content

savedStarGift

Represents a gift owned by a peer.

type tg.SavedStarGift struct { /* ... */ }

Fields​

NameTypeRequiredDescription
NameHiddenbool—If set, the gift sender in from_id and the message are set only for the receiver of the gift.
Unsavedbool—If set, the gift is not pinned on the user's profile.
Refundedbool—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.
CanUpgradebool—Only set for non-collectible gifts, if they can be upgraded to a collectible gift ».
PinnedToTopbool—Whether this gift is pinned on top of the user's profile page.
UpgradeSeparatebool—If set, someone already separately pre-paid for the upgrade of this gift.
FromIDPeerClass—Sender of the gift (unset for anonymous gifts).
DateintyesReception date of the gift.
GiftStarGiftClassyesThe collectible gift.
MessageTextWithEntities—Message attached to the gift.
MsgIDint—For gifts received by users, ID to use in inputSavedStarGiftUser constructors.
SavedIDint64—For gifts received by channels, ID to use in inputSavedStarGiftChat constructors.
ConvertStarsint64—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.
UpgradeStarsint64—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).
CanExportAtint—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.
TransferStarsint64—If set, indicates that the gift can be transferred » to another user by paying the specified amount of stars.
CanTransferAtint—If set, indicates that the current gift can't be transferred » yet: the owner will be able to transfer it at the specified unixtime.
CanResellAtint—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.
PrepaidUpgradeHashstring—Hash to prepay for a gift upgrade separately ».
DropOriginalDetailsStarsint64—If set, the starGiftAttributeOriginalDetails attribute of this gift may be removed by paying the specified amount of stars, see here » for the full flow.
GiftNumint—Collectible number assigned to the gift, if already known.
CanCraftAtint—If set, this gift can be used for crafting » only starting from the specified unixtime.

References​