stats.getStoryStats #
Get statistics for a certain story.¶
Layer 223
stats.storyStats#50cd067c views_graph:StatsGraph reactions_by_emotion_graph:StatsGraph = stats.StoryStats;
---functions---
stats.getStoryStats#374fef40 flags:# dark:flags.0?true peer:InputPeer id:int = stats.StoryStats; Parameters #
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| dark | flags.0?true | Whether to enable the dark theme for graph colors |
| peer | InputPeer | The peer that posted the story |
| id | int | Story ID |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORIES_NEVER_CREATED | This peer hasn't ever posted any stories. |
Related pages #
Channel statistics #
Telegram offers detailed channel statistics for channels and supergroups.¶
Telegram Stories #
Telegram users and channels can easily post and view stories through the API.¶