StoryViews

class pyrogram.raw.types.StoryViews

Aggregated view and reaction information of a story.

Constructor of StoryViews.

Details:
  • Layer: 223

  • ID: 8D595CD6

Parameters:
  • views_count (int 32-bit) – View counter of the story

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

  • forwards_count (int 32-bit, optional) – Forward counter of the story

  • reactions (List of ReactionCount, optional) – All reactions sent to this story

  • reactions_count (int 32-bit, optional) – Number of reactions added to the story

  • recent_viewers (List of int 64-bit, optional) – User IDs of some recent viewers of the story

TL Schema

storyViews#8d595cd6
flags:#
has_viewers:flags.1?true
views_count:int
forwards_count:flags.2?int
reactions:flags.3?Vector<ReactionCount>
reactions_count:flags.4?int
recent_viewers:flags.0?Vector<long>

= StoryViews

Parameter Tree

StoryViews
├── has_viewerstrue (optional)
├── views_countint
├── forwards_countint (optional)
├── reactionsVector < ReactionCount > (optional)
│ └── ReactionCount
│ ├── chosen_orderint (optional)
│ ├── reactionReaction
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ │ └── emoticonstring
│ │ ├── ReactionCustomEmoji
│ │ │ └── document_idlong
│ │ └── ReactionPaid
│ └── countint
├── reactions_countint (optional)
└── recent_viewersVector < long > (optional)

Example

StoryViews(
    views_count=0,
)