Layer 220
PaymentsGetSavedStarGift
Fetch info about specific gifts owned by a peer we control.
method
Users
payments.getSavedStarGift#b455a106 stargift:Vector<InputSavedStarGift> = payments.SavedStarGifts;
Parameters
| Name | Type | Description |
|---|---|---|
| Stargift | Vector<InputSavedStarGift> | List of gifts to fetch info about. |
Returns
payments.SavedStarGiftsPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | SAVED_ID_EMPTY | The passed input Saved Star Gift Chat. saved_id is empty. |
| 400 | STARGIFT_SLUG_INVALID | The specified gift slug is invalid. |
Gogram Example
// PaymentsGetSavedStarGift - positional arguments result, err := client.PaymentsGetSavedStarGift([]tg.InputSavedStarGift{&tg.InputSavedStarGift{}}) if err != nil { // handle error } // result is *tg.PaymentsSavedStarGifts