stats.getMegagroupStats
Get supergroup statistics
Get [supergroup statistics](https://core.telegram.org/api/stats.md)
| Name | Type | Required | Description |
|---|---|---|---|
dark | true | No | Whether to enable dark theme for graph colors |
channel | InputChannel | Yes | [Supergroup ID](https://core.telegram.org/api/channel.md) |
Replies
stats.MegagroupStats
MTProto RPC
- 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.