stats.getMegagroupStats

Get supergroup statistics

 Method schema is available as of layer 116. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
dark flags.0?true Whether to enable dark theme for graph colors
channel InputChannel Supergroup ID

Result

stats.MegagroupStats

Possible errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
403 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
400 MEGAGROUP_REQUIRED You can only use this method on a supergroup.

Related pages

Channels, supergroups, gigagroups and basic groups

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.

Channel statistics

Telegram offers detailed channel statistics for channels and supergroups.