get_broadcast_stats()

async Client.get_broadcast_stats()

Get channel statistics.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target channel.

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

Returns:

BroadcastStats – The broadcast statistics.

Example

stats = await app.get_broadcast_stats(chat_id)