Layer 224
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.StarGiftUpgradePreviewGogram Example
// PaymentsGetStarGiftUpgradePreview - positional arguments result, err := client.PaymentsGetStarGiftUpgradePreview(int64(1234567890)) if err != nil { // handle error } // result is *tg.PaymentsStarGiftUpgradePreview
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STARGIFT_INVALID | The passed gift is invalid. |