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.
Convert a [received gift »](https://core.telegram.org/api/gifts.md) into Telegram Stars: this will permanently destroy the gift, converting it into [starGift](https://core.telegram.org/constructor/starGift.md).`convert_stars` [Telegram Stars](https://core.telegram.org/api/stars.md), added to the user's balance.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
stargift | InputSavedStarGift | Ja | The gift to convert. |
Antworten
Bool
MTProto RPC
- 400 · BUSINESS_CONNECTION_INVALID – Die an den Wrapping-Aufruf [invokeWithBusinessConnection](https://core.telegram.org/api/business.md)] übergebene connection_id ist ungültig.
- 400 · MESSAGE_ID_INVALID – Die angegebene Nachrichten-ID ist ungültig.
- 400 · SAVED_ID_EMPTY – Das übergebene inputSavedStarGiftChat.saved_id ist leer.
- 400 · STARGIFT_PEER_INVALID – Die angegebene inputSavedStarGiftChat.peer ist ungültig.
- 400 · USER_ID_INVALID – Die angegebene Benutzer-ID ist ungültig.