stats.GetMegagroupStats

class pyrogram.raw.functions.stats.GetMegagroupStats

Get supergroup statistics

Details:
  • Layer: 223

  • ID: DCDF8607

Parameters:
  • channel (InputChannel) – Supergroup ID

  • dark (bool, optional) – Whether to enable dark theme for graph colors

Returns:

stats.MegagroupStats

TL Schema

stats.getMegagroupStats#dcdf8607
flags:#
dark:flags.0?true
channel:InputChannel

= stats.MegagroupStats

Parameter Tree

GetMegagroupStats
├── darktrue (optional)
└── channelInputChannel
├── InputChannel
│ ├── channel_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    GetMegagroupStats(
        dark=None,
        channel=await app.resolve_channel(chat_id),
    )
)