Skip to main content

messageActionStarGiftUnique

A gift » was upgraded to a collectible gift ».

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

Implements MessageAction.

Fields

NameTypeRequiredDescription
UpgradeboolIf set, this collectible was upgraded » to a collectible gift from a previously received or sent (depending on the out flag of the containing messageService) non-collectible gift.
TransferredboolIf set, this collectible was transferred (either to the current user or by the current user to the other user in the private chat, depending on the out flag of the containing messageService).
SavedboolIf set, this gift is visible on the user or channel's profile page; can only be set for the receiver of a gift.
RefundedboolThis 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.
PrepaidUpgradeboolThe sender has pre-paid for the upgrade of this gift to a collectible gift.
AssignedboolThis collectible gift was assigned from the TON blockchain ».
FromOfferboolThis collectible gift was transferred after a purchase offer » was accepted.
CraftboolThis collectible gift was obtained by crafting ».
GiftStarGiftClassyesThe collectible gift.
CanExportAtintIf 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.
TransferStarsint64If set, indicates that the gift can be transferred » to another user by paying the specified amount of stars.
FromIDPeerClassSender of the gift (unset for anonymous gifts).
PeerPeerClassReceiver of the gift.
SavedIDint64For channel gifts, ID to use in inputSavedStarGiftChat constructors.
ResaleAmountStarsAmountClassResale price of the gift.
CanTransferAtintIf set, indicates that the current gift can't be transferred » yet: the owner will be able to transfer it at the specified unixtime.
CanResellAtintIf 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.
DropOriginalDetailsStarsint64If set, the starGiftAttributeOriginalDetails attribute of this gift may be removed by paying the specified amount of stars, see here » for the full flow.
CanCraftAtintIf set, this gift can be used for crafting » only starting from the specified unixtime.

References