stats.GetMessageStats

class pyrogram.raw.functions.stats.GetMessageStats

Get message statistics

Details:
  • Layer: 227

  • 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
├── dark → true (optional)
├── channel → InputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── msg_id → int

Example

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