Layer 220
PaymentsGetStarGiftUpgradePreview
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.
method
Users
payments.getStarGiftUpgradePreview#9c9abcb1 gift_id:long = payments.StarGiftUpgradePreview;
Parameters
| Name | Type | Description |
|---|---|---|
| GiftId | long | The gift to upgrade. |
Returns
payments.StarGiftUpgradePreviewPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STARGIFT_INVALID | The passed gift is invalid. |
Gogram Example
// PaymentsGetStarGiftUpgradePreview - positional arguments result, err := client.PaymentsGetStarGiftUpgradePreview(int64(0)) if err != nil { // handle error } // result is *tg.PaymentsStarGiftUpgradePreview