stats.GetStoryStats

class pyrogram.raw.functions.stats.GetStoryStats

Get statistics for a certain story.

Details:
  • Layer: 223

  • ID: 374FEF40

Parameters:
  • peer (InputPeer) – The peer that posted the story

  • id (int 32-bit) – Story ID

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

Returns:

stats.StoryStats

TL Schema

stats.getStoryStats#374fef40
flags:#
dark:flags.0?true
peer:InputPeer
id:int

= stats.StoryStats

Parameter Tree

GetStoryStats
├── darktrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── idint

Example

await app.invoke(
    GetStoryStats(
        dark=None,
        peer=await app.resolve_peer(chat_id),
        id=0,
    )
)