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 | Type | Required | Description |
|---|---|---|---|
stargift | InputSavedStarGift | Yes | The gift to convert. |
Responses
Bool
MTProto RPC
- 400 · BUSINESS_CONNECTION_INVALID — The connection_id passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.
- 400 · MESSAGE_ID_INVALID — The provided message id is invalid.
- 400 · SAVED_ID_EMPTY — The passed inputSavedStarGiftChat.saved_id is empty.
- 400 · STARGIFT_PEER_INVALID — The specified inputSavedStarGiftChat.peer is invalid.
- 400 · USER_ID_INVALID — The provided user ID is invalid.