payments.getStarsGiftOptions

Obtain a list of Telegram Stars gift options » as starsGiftOption constructors.

---functions---
payments.getStarsGiftOptions#d3c96bc8 flags:# user_id:flags.0?InputUser = Vector<StarsGiftOption>;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
user_id flags.0?InputUser Receiver of the gift (optional).

Result

Vector<StarsGiftOption>

Possible errors

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.

Related pages

Telegram Stars

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.

starsGiftOption

Telegram Stars gift option.

Client configuration

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.