Layer 227
PaymentsSaveStarGift
Display or remove a received or hosted gift from our profile.
method
Users
payments.saveStarGift#2a2a697c flags:# unsave:flags.0?true stargift:InputSavedStarGift = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Unsave | flags .0? true | If set, hides the gift from our profile. |
| Stargift | InputSavedStarGift | The gift to display or remove. A hosted collectible gift may be used by its host or owner. |
Returns
BoolGogram Example
// PaymentsSaveStarGift - positional arguments result, err := client.PaymentsSaveStarGift(nil, &tg.InputSavedStarGift{}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | SAVED_ID_EMPTY | The passed input Saved Star Gift Chat. saved_id is empty. |
| 400 | STARGIFT_OBJECT_INVALID | The specified star gift object is invalid. |
| 400 | STARGIFT_OWNER_INVALID | You cannot transfer or sell a gift owned by another user. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |