payments.convertStarGift

Convert a received gift » into Telegram Stars: this will permanently destroy the gift, converting it into starGift.convert_stars Telegram Stars, added to the user's balance.

Note that starGift.convert_stars will be less than the buying price (starGift.stars) of the gift if it was originally bought using Telegram Stars bought a long time ago.

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
payments.convertStarGift#421e027 user_id:InputUser msg_id:int = Bool;

Parameters

Name Type Description
user_id InputUser ID of the user that sent us the gift.
msg_id int The ID of the messageService with the messageActionStarGift.

Result

Bool

Bots can use this method

Related pages

messageService

Indicates a service message

messageActionStarGift

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

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.

starGift

Represents a star gift, see here » for more info.

Telegram Stars

Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.