payments.getStarsGiftOptions
获取 Telegram Stars 礼物选项列表 » 作为 StarsGiftOption 构造函数。
获取 [Telegram Stars 礼物选项 »](https://core.telegram.org/api/stars.md#buying-or-gifting-stars) 列表作为 [starsGiftOption](https://core.telegram.org/constructor/starsGiftOption.md) 构造函数。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
user_id | InputUser | 否 | 礼物的接收者(可选)。 |
回应
Vector<StarsGiftOption>
MTProto RPC
- 400 · INPUT_USER_DEACTIVATED — 指定用户已被删除。
- 400 · USER_GIFT_UNAVAILABLE — 当前地区无法获得礼物([stars_gifts_enabled](https://core.telegram.org/api/config.md#stars-gifts-enabled) 等于 false)。
- 400 · USER_ID_INVALID — 提供的用户 ID 无效。