payments.GetStarsGiftOptions

class pyrogram.raw.functions.payments.GetStarsGiftOptions

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

Details:
  • Layer: 223

  • ID: D3C96BC8

Parameters:

user_id (InputUser, optional) – Receiver of the gift (optional).

Returns:

List of StarsGiftOption

TL Schema

payments.getStarsGiftOptions#d3c96bc8
flags:#
user_id:flags.0?InputUser

= Vector<StarsGiftOption>

Parameter Tree

GetStarsGiftOptions
└── user_idInputUser (optional)
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

await app.invoke(
    GetStarsGiftOptions(
        user_id=await app.resolve_user(chat_id),
    )
)