stats.GetMegagroupStats

class pyrogram.raw.functions.stats.GetMegagroupStats

Get supergroup statistics

Details:
  • Layer: 227

  • 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
├── dark → true (optional)
└── channel → InputChannel
├── InputChannel
│ ├── channel_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

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