MadelineProtoDocs/docs/API_docs/constructors/stats.storyStats.md
2024-05-01 14:53:46 +02:00

1.1 KiB

title description nav_exclude image redirect_from
stats.storyStats Contains statistics about a story. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/stats_storyStats.html

Constructor: stats.storyStats

Back to constructors index

Contains statistics about a story.

Attributes:

Name Type Required Description
views_graph StatsGraph Yes A graph containing the number of story views and shares
reactions_by_emotion_graph StatsGraph Yes A bar graph containing the number of story reactions categorized by "emotion" (i.e. Positive, Negative, Other, etc...)

Type: stats.StoryStats

Example:

$stats_storyStats = ['_' => 'stats.storyStats', 'views_graph' => StatsGraph, 'reactions_by_emotion_graph' => StatsGraph];