Obtain a list of Telegram Stars gift options » as starsGiftOption constructors.
---functions---
payments.getStarsGiftOptions#d3c96bc8 flags:# user_id:flags.0?InputUser = Vector<StarsGiftOption>;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
user_id | flags.0?InputUser | Receiver of the gift (optional). |
Code | Type | Description |
---|---|---|
400 | USER_GIFT_UNAVAILABLE | Gifts are not available in the current region (stars_gifts_enabled is equal to false). |
400 | USER_ID_INVALID | The provided user ID is invalid. |
Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.
The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.