payments.GetStarsGiftOptions
- class pyrogram.raw.functions.payments.GetStarsGiftOptions
Obtain a list of Telegram Stars gift options » as starsGiftOption constructors.
- Details:
Layer:
223ID:
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_id →
InputUser (optional)├──
InputUserEmpty├──
InputUserSelf├──
InputUser│ ├── user_id →
long│ └── access_hash →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── user_id →
longExample
await app.invoke(
GetStarsGiftOptions(
user_id=await app.resolve_user(chat_id),
)
)