Layer 220
method Users
stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Dark flags.0?true Whether to enable dark theme for graph colors
Channel InputChannel Channel ID
MsgId int Message ID

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
400 MESSAGE_ID_INVALID The provided message id is invalid.
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// StatsGetMessageStats - using Params struct
result, err := client.StatsGetMessageStats(&tg.StatsGetMessageStatsParams{
    Channel: &tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)},
    MsgId: 0,

    // Optional fields:
    // Dark: true,
})
if err != nil {
    // handle error
}
// result is *tg.StatsMessageStats