Constructor: messageActionStarGift
You received a gift, see here » for more info.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
name_hidden | Bool | Optional | If set, the name of the sender of the gift will be hidden if the destination user decides to display the gift on their profile |
saved | Bool | Optional | Whether this gift was added to the destination user’s profile (may be toggled using payments.saveStarGift and fetched using payments.getUserStarGifts) |
converted | Bool | Optional | Whether this gift was converted to Telegram Stars and cannot be displayed on the profile anymore. |
upgraded | Bool | Optional | |
refunded | Bool | Optional | |
can_upgrade | Bool | Optional | |
gift | StarGift | Yes | Info about the gift |
message | TextWithEntities | Optional | Additional message from the sender of the gift |
convert_stars | long | Optional | The 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_id | int | Optional | |
upgrade_stars | long | Optional | |
from_id | Peer | Optional | |
peer | long | Optional | |
saved_id | long | Optional |
Type: MessageAction
Example:
$messageActionStarGift = ['_' => 'messageActionStarGift', 'name_hidden' => Bool, 'saved' => Bool, 'converted' => Bool, 'upgraded' => Bool, 'refunded' => Bool, 'can_upgrade' => Bool, 'gift' => StarGift, 'message' => TextWithEntities, 'convert_stars' => long, 'upgrade_msg_id' => int, 'upgrade_stars' => long, 'from_id' => Peer, 'peer' => long, 'saved_id' => long];