Layer 220
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 |
|---|---|---|
| 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 |
Returns
stats.StoryStatsPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORIES_NEVER_CREATED | This peer hasn't ever posted any stories. |
Gogram Example
// StatsGetStoryStats - using Params struct result, err := client.StatsGetStoryStats(&tg.StatsGetStoryStatsParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, Id: 0, // Optional fields: // Dark: true, }) if err != nil { // handle error } // result is *tg.StatsStoryStats