payments.GetPremiumGiftCodeOptions
- class pyrogram.raw.functions.payments.GetPremiumGiftCodeOptions
Obtain a list of Telegram Premium giveaway/gift code » options.
- Details:
Layer:
223ID:
2757BA54
- Parameters:
boost_peer (
InputPeer, optional) – The channel that will start the giveaway- Returns:
List of
PremiumGiftCodeOption
TL Schema
payments.getPremiumGiftCodeOptions#2757ba54
flags:#
boost_peer:flags.0?InputPeer
= Vector<PremiumGiftCodeOption>
Parameter Tree
GetPremiumGiftCodeOptions
└── boost_peer →
InputPeer (optional)├──
InputPeerEmpty├──
InputPeerSelf├──
InputPeerChat│ └── chat_id →
long├──
InputPeerUser│ ├── user_id →
long│ └── access_hash →
long├──
InputPeerChannel│ ├── channel_id →
long│ └── access_hash →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
GetPremiumGiftCodeOptions(
boost_peer=await app.resolve_peer(chat_id),
)
)