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

1.5 KiB

title description nav_exclude image
storyViews Aggregated view and reaction information of a story. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: storyViews

Back to constructors index

Aggregated view and reaction information of a story.

Attributes:

Name Type Required Description
has_viewers Bool Optional If 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_count int Yes View counter of the story
forwards_count int Optional Forward counter of the story
reactions Array of ReactionCount Optional All reactions sent to this story
reactions_count int Optional Number of reactions added to the story
recent_viewers Array of long Optional User 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]];