premium.GetBoostsList

class pyrogram.raw.functions.premium.GetBoostsList

Obtains info about the boosts that were applied to a certain channel or supergroup (admins only)

Details:
  • Layer: 223

  • ID: 60F67660

Parameters:
  • peer (InputPeer) – The channel/supergroup

  • offset (str) – Offset for pagination, obtained from premium.boostsList.next_offset

  • limit (int 32-bit) – Maximum number of results to return, see pagination

  • gifts (bool, optional) – Whether to return only info about boosts received from gift codes and giveaways created by the channel/supergroup »

Returns:

premium.BoostsList

TL Schema

premium.getBoostsList#60f67660
flags:#
gifts:flags.0?true
peer:InputPeer
offset:string
limit:int

= premium.BoostsList

Parameter Tree

GetBoostsList
├── giftstrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── offsetstring
└── limitint

Example

await app.invoke(
    GetBoostsList(
        gifts=None,
        peer=await app.resolve_peer(chat_id),
        offset="text",
        limit=0,
    )
)