Layer 227
StatsGetStoryStats
Get statistics for a certain story.
method
Users
stats.getStoryStats#374fef40 flags:# dark:flags.0?true peer:InputPeer id:int = stats.StoryStats;
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Returns
stats.StoryStatsGogram Example
// StatsGetStoryStats - positional arguments result, err := client.StatsGetStoryStats(nil, &tg.InputPeerUser{UserID: int64(777000)}, 42) if err != nil { // handle error } // result is *tg.StatsStoryStats
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. |