stats.GetBroadcastStats

class pyrogram.raw.functions.stats.GetBroadcastStats

Get channel statistics

Details:
  • Layer: 227

  • 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
├── 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(
    GetBroadcastStats(
        dark=None,
        channel=await app.resolve_channel(chat_id),
    )
)