Layer 224
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

Gogram Example

// StatsGetStoryStats - using Params struct
result, err := client.StatsGetStoryStats(&tg.StatsGetStoryStatsParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    Id: 42,

    // Optional fields:
    // Dark: true,
})
if err != nil {
    // handle error
}
// result is *tg.StatsStoryStats

Possible 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.