stats.GetMessageStats

class pyrogram.raw.functions.stats.GetMessageStats

Get message statistics

Details:
  • Layer: 223

  • ID: B6E0A3F5

Parameters:
  • channel (InputChannel) – Channel ID

  • msg_id (int 32-bit) – Message ID

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

Returns:

stats.MessageStats

TL Schema

stats.getMessageStats#b6e0a3f5
flags:#
dark:flags.0?true
channel:InputChannel
msg_id:int

= stats.MessageStats

Parameter Tree

GetMessageStats
├── darktrue (optional)
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── msg_idint

Example

await app.invoke(
    GetMessageStats(
        dark=None,
        channel=await app.resolve_channel(chat_id),
        msg_id=0,
    )
)