Layer 220
PaymentsUpdateStarGiftPrice
A collectible gift we own can be put up for sale on the gift marketplace with this method, see here for more info.
method
Users
payments.updateStarGiftPrice#edbe6ccb stargift:InputSavedStarGift resell_amount:StarsAmount = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Stargift | InputSavedStarGift | The gift to resell. |
| ResellAmount | StarsAmount | Resale price of the gift. |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | SAVED_ID_EMPTY | The passed input Saved Star Gift Chat. saved_id is empty. |
| 400 | STARGIFT_NOT_FOUND | The specified gift was not found. |
Gogram Example
// PaymentsUpdateStarGiftPrice - positional arguments result, err := client.PaymentsUpdateStarGiftPrice(&tg.InputSavedStarGift{}, &tg.StarsAmount{}) if err != nil { // handle error } // result is *tg.Updates