stats.GetStoryStats
- class pyrogram.raw.functions.stats.GetStoryStats
Get statistics for a certain story.
- Details:
Layer:
223ID:
374FEF40
- Parameters:
peer (
InputPeer) – The peer that posted the storyid (
int32-bit) – Story IDdark (
bool, optional) – Whether to enable the dark theme for graph colors
- Returns:
TL Schema
stats.getStoryStats#374fef40
flags:#
dark:flags.0?true
peer:InputPeer
id:int
= stats.StoryStats
Parameter Tree
GetStoryStats
├── dark →
true (optional)├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── id →
intExample
await app.invoke(
GetStoryStats(
dark=None,
peer=await app.resolve_peer(chat_id),
id=0,
)
)