telegram api constructor · layer 229 · #ea2c31d3

messageActionStarGift

You received a gift, see here » for more info.

definition

messageActionStarGift#ea2c31d3 flags:# name_hidden:flags.0?true saved:flags.2?true converted:flags.3?true upgraded:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true prepaid_upgrade:flags.13?true upgrade_separate:flags.16?true auction_acquired:flags.17?true gift:StarGift message:flags.1?TextWithEntities convert_stars:flags.4?long upgrade_msg_id:flags.5?int upgrade_stars:flags.8?long from_id:flags.11?Peer peer:flags.12?Peer saved_id:flags.12?long prepaid_upgrade_hash:flags.14?string gift_msg_id:flags.15?int to_id:flags.18?Peer gift_num:flags.19?int = MessageAction;

parameters

nametypedescription
flags#Flags, see TL conditional fields
name_hiddenflags.0?trueIf set, the name of the sender of the gift will be hidden if the destination user decides to display the gift on their profile
savedflags.2?trueWhether this gift was added to the destination user's profile (may be toggled using payments.saveStarGift and fetched using payments.getSavedStarGifts)
convertedflags.3?trueWhether this gift was converted to Telegram Stars and cannot be displayed on the profile anymore.
upgradedflags.5?trueThis gift was upgraded to a collectible gift ».
refundedflags.9?trueThis gift is not available anymore because a request to refund the payment related to this gift was made, and the money was returned.
can_upgradeflags.10?trueIf set, this gift can be upgraded to a collectible gift; can only be set for the receiver of a gift.
prepaid_upgradeflags.13?trueThe sender has already pre-paid for the upgrade of this gift to a collectible gift.
upgrade_separateflags.16?trueThis service message is the notification of a separate pre-payment for the upgrade of a gift we own.
auction_acquiredflags.17?true
giftStarGiftInfo about the gift
messageflags.1?TextWithEntitiesAdditional message from the sender of the gift
convert_starsflags.4?longThe receiver of this gift may convert it to this many Telegram Stars, instead of displaying it on their profile page.convert_stars will be equal to stars only if the gift was bought using recently bought Telegram Stars, otherwise it will be less than stars.
upgrade_msg_idflags.5?intIf set, this gift was upgraded to a collectible gift, and the corresponding messageActionStarGiftUnique is available at the specified message ID.
upgrade_starsflags.8?longThe number of Telegram Stars the user can pay to convert the gift into a collectible gift ».
from_idflags.11?PeerSender of the gift (unset for anonymous gifts).
peerflags.12?PeerReceiver of the gift.
saved_idflags.12?longFor channel gifts, ID to use in inputSavedStarGiftChat constructors.
prepaid_upgrade_hashflags.14?stringHash to prepay for a gift upgrade separately ».
gift_msg_idflags.15?intFor separate upgrades, the identifier of the message with the gift whose upgrade was prepaid (only valid for the receiver of the service message).
to_idflags.18?Peer
gift_numflags.19?int

type

MessageAction · 68 other constructors

history

present in layers 189–229 · constructor id changed 6×

idlayers
#9bb3ef44189–192
#08557637193–195
#d8f4f0a7196–197
#4717e8a4198–211
#f24de7fa212–217
#db596550218–219
#ea2c31d3220–229