payments.convertStarGift
将收到的礼物 » 转换为 Telegram Stars:这将永久销毁礼物,将其转换为 starGift。`convert_stars` Telegram Stars,添加到用户的余额中。
将[收到的礼物»](https://core.telegram.org/api/gifts.md)转换为Telegram Stars:这将永久销毁礼物,将其转换为[starGift](https://core.telegram.org/constructor/starGift.md).`convert_stars` [Telegram Stars](https://core.telegram.org/api/stars.md)],添加到用户的余额中。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
stargift | InputSavedStarGift | 是的 | 要转换的礼物。 |
回应
Bool
MTProto RPC
- 400 · BUSINESS_CONNECTION_INVALID — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 connection_id 无效。
- 400 · MESSAGE_ID_INVALID — 提供的消息 ID 无效。
- 400·SAVED_ID_EMPTY — 传递的inputSavedStarGiftChat.saved_id为空。
- 400 · STARGIFT_PEER_INVALID — 指定的inputSavedStarGiftChat.peer 无效。
- 400 · USER_ID_INVALID — 提供的用户 ID 无效。