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: 227

  • 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
├── gifts → true (optional)
├── peer → InputPeer
│ ├── 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
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── offset → string
└── limit → int

Example

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