payments.getStarsGiftOptions #

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

Layer 223

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

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
user_idflags.0?InputUserReceiver of the gift (optional).

Result #

Vector<StarsGiftOption>

Only users can use this method #

Possible errors #

CodeTypeDescription
400INPUT_USER_DEACTIVATEDThe specified user was deleted.
400USER_GIFT_UNAVAILABLEGifts are not available in the current region (stars_gifts_enabled is equal to false).
400USER_ID_INVALIDThe provided user ID is invalid.

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.