stats.StoryStats
- class pyrogram.raw.types.stats.StoryStats
Contains statistics about a story.
Constructor of
StoryStats.- Details:
Layer:
223ID:
50CD067C
- Parameters:
views_graph (
StatsGraph) – A graph containing the number of story views and sharesreactions_by_emotion_graph (
StatsGraph) – A bar graph containing the number of story reactions categorized by “emotion” (i.e. Positive, Negative, Other, etc…)
- Functions:
This object can be returned by 1 function.
Get statistics for a certain story.
TL Schema
stats.storyStats#50cd067c
views_graph:StatsGraph
reactions_by_emotion_graph:StatsGraph
= stats.StoryStats
Parameter Tree
StoryStats
├── views_graph →
StatsGraph│ ├──
StatsGraphAsync│ │ └── token →
string│ ├──
StatsGraphError│ │ └── error →
string│ └──
StatsGraph│ ├── json →
DataJSON│ │ └──
DataJSON│ │ └── data →
string│ └── zoom_token →
string (optional)└── reactions_by_emotion_graph →
StatsGraphExample
StoryStats(
views_graph=StatsGraphAsync(token="text"),
reactions_by_emotion_graph=StatsGraphAsync(token="text"),
)