payments.getStarGiftUpgradePreview
Obtain a preview of the possible attributes (chosen randomly) a gift » can receive after upgrading it to a collectible gift », see here » for more info.
Obtain a preview of the possible attributes (chosen randomly) a [gift »](https://core.telegram.org/api/gifts.md) can receive after upgrading it to a [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gifts), see [here »](https://core.telegram.org/api/gifts.md#collectible-gifts) for more info.
| Name | Type | Required | Description |
|---|---|---|---|
gift_id | long | Yes | The gift to upgrade. |
Responses
payments.StarGiftUpgradePreview
MTProto RPC
- 400 · STARGIFT_INVALID — The passed gift is invalid.
- 400 · STARGIFT_UPGRADE_UNAVAILABLE — A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).can_upgrade flag is set.