stats.GetBroadcastStats

class pyrogram.raw.functions.stats.GetBroadcastStats

Get channel statistics

Details:
  • Layer: 223

  • ID: AB42441A

Parameters:
  • channel (InputChannel) – The channel

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

Returns:

stats.BroadcastStats

TL Schema

stats.getBroadcastStats#ab42441a
flags:#
dark:flags.0?true
channel:InputChannel

= stats.BroadcastStats

Parameter Tree

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

Example

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