Layer 227
method Users
stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;

Parameters

Name Type Description
Dark flags .0? true Whether to enable dark theme for graph colors
Channel InputChannel Supergroup ID

Gogram Example

// StatsGetMegagroupStats - positional arguments
result, err := client.StatsGetMegagroupStats(nil, &tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)})
if err != nil {
    // handle error
}
// result is *tg.StatsMegagroupStats

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.