messageActionStarGiftUnique #

A gift » was upgraded to a collectible gift ».

Layer 223

messageActionStarGiftUnique#e6c31522 flags:# upgrade:flags.0?true transferred:flags.1?true saved:flags.2?true refunded:flags.5?true prepaid_upgrade:flags.11?true assigned:flags.13?true from_offer:flags.14?true craft:flags.16?true gift:StarGift can_export_at:flags.3?int transfer_stars:flags.4?long from_id:flags.6?Peer peer:flags.7?Peer saved_id:flags.7?long resale_amount:flags.8?StarsAmount can_transfer_at:flags.9?int can_resell_at:flags.10?int drop_original_details_stars:flags.12?long can_craft_at:flags.15?int = MessageAction;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
upgradeflags.0?trueIf 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.
transferredflags.1?trueIf 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).
savedflags.2?trueIf set, this gift is visible on the user or channel's profile page; can only be set for the receiver of a gift.
refundedflags.5?trueThis 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_upgradeflags.11?trueThe sender has pre-paid for the upgrade of this gift to a collectible gift.
assignedflags.13?trueThis collectible gift was linked from the TON blockchain to a Telegram profile ».
from_offerflags.14?trueThis collectible gift was transferred after a purchase offer » was accepted.
craftflags.16?trueThis collectible gift was obtained by crafting ».
giftStarGiftThe collectible gift.
can_export_atflags.3?intIf 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_starsflags.4?longIf set, indicates that the gift can be transferred » to another user by paying the specified amount of stars.
from_idflags.6?PeerSender of the gift (unset for anonymous gifts).
peerflags.7?PeerReceiver of the gift.
saved_idflags.7?longFor channel gifts, ID to use in inputSavedStarGiftChat constructors.
resale_amountflags.8?StarsAmountResale price of the gift.
can_transfer_atflags.9?intIf 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_atflags.10?intIf 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_starsflags.12?longIf set, the starGiftAttributeOriginalDetails attribute of this gift may be removed by paying the specified amount of stars, see here » for the full flow.
can_craft_atflags.15?intIf set, this gift can be used for crafting » only starting from the specified unixtime.

Type #

MessageAction

Telegram Gifts #

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.

messageService #

Indicates a service message

inputSavedStarGiftChat #

A gift received by a channel we own.

starGiftAttributeOriginalDetails #

Info about the sender, receiver and message attached to the original gift », before it was upgraded to a collectible gift ».