payments.getStarsGiftOptions
Obtain a list of Telegram Stars gift options » as starsGiftOption constructors.
Obtain a list of [Telegram Stars gift options »](https://core.telegram.org/api/stars.md#buying-or-gifting-stars) as [starsGiftOption](https://core.telegram.org/constructor/starsGiftOption.md) constructors.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
user_id | InputUser | Nein | Receiver of the gift (optional). |
Antworten
Vector<StarsGiftOption>
MTProto RPC
- 400 · INPUT_USER_DEACTIVATED – Der angegebene Benutzer wurde gelöscht.
- 400 · USER_GIFT_UNAVAILABLE – Geschenke sind in der aktuellen Region nicht verfügbar ([stars_gifts_enabled](https://core.telegram.org/api/config.md#stars-gifts-enabled) ist gleich falsch).
- 400 · USER_ID_INVALID – Die angegebene Benutzer-ID ist ungültig.