Link Search Menu Expand Document

Constructor: storyViews

Back to constructors index

Aggregated view and reaction information of a story.

Attributes:

NameTypeRequiredDescription
has_viewersBoolOptionalIf set, indicates that the viewers list is currently viewable, and was not yet deleted because the story has expired while the user didn’t have a Premium account.
views_countintYesView counter of the story
forwards_countintOptionalForward counter of the story
reactionsArray of ReactionCountOptionalAll reactions sent to this story
reactions_countintOptionalNumber of reactions added to the story
recent_viewersArray of longOptionalUser IDs of some recent viewers of the story

Type: StoryViews

Example:

$storyViews = ['_' => 'storyViews', 'has_viewers' => Bool, 'views_count' => int, 'forwards_count' => int, 'reactions' => [ReactionCount, ReactionCount], 'reactions_count' => int, 'recent_viewers' => [long, long]];