Link Search Menu Expand Document

Constructor: messageActionStarGiftUnique

Back to constructors index

A gift » was upgraded to a collectible gift ».

Attributes:

NameTypeRequiredDescription
upgradeBoolOptionalIf 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.
transferredBoolOptionalIf 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).
savedBoolOptionalIf set, this gift is visible on the user or channel’s profile page; can only be set for the receiver of a gift.
refundedBoolOptionalThis 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.
prepaid_upgradeBoolOptionalThe sender has pre-paid for the upgrade of this gift to a collectible gift.
assignedBoolOptional
giftStarGiftYesThe collectible gift.
can_export_atintOptionalIf 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_starslongOptionalIf set, indicates that the gift can be transferred » to another user by paying the specified amount of stars.
from_idPeerOptionalSender of the gift (unset for anonymous gifts).
peerlongOptionalReceiver of the gift.
saved_idlongOptionalFor channel gifts, ID to use in inputSavedStarGiftChat constructors.
resale_amountStarsAmountOptionalResale price of the gift.
can_transfer_atintOptionalIf 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_atintOptionalIf 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.
drop_original_details_starslongOptional

Type: MessageAction

Example:

$messageActionStarGiftUnique = ['_' => 'messageActionStarGiftUnique', 'upgrade' => Bool, 'transferred' => Bool, 'saved' => Bool, 'refunded' => Bool, 'prepaid_upgrade' => Bool, 'assigned' => Bool, 'gift' => StarGift, 'can_export_at' => int, 'transfer_stars' => long, 'from_id' => Peer, 'peer' => long, 'saved_id' => long, 'resale_amount' => StarsAmount, 'can_transfer_at' => int, 'can_resell_at' => int, 'drop_original_details_stars' => long];