payments.GetPremiumGiftCodeOptions

class pyrogram.raw.functions.payments.GetPremiumGiftCodeOptions

Obtain a list of Telegram Premium giveaway/gift code » options.

Details:
  • Layer: 223

  • ID: 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_peerInputPeer (optional)
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    GetPremiumGiftCodeOptions(
        boost_peer=await app.resolve_peer(chat_id),
    )
)