stories.GetStoryViewsList

class pyrogram.raw.functions.stories.GetStoryViewsList

Obtain the list of users that have viewed a specific story we posted

Details:
  • Layer: 223

  • ID: 7ED23C57

Parameters:
  • peer (InputPeer) – Peer where the story was posted

  • id (int 32-bit) – Story ID

  • offset (str) – Offset for pagination, obtained from stories.storyViewsList.next_offset

  • limit (int 32-bit) – Maximum number of results to return, see pagination

  • just_contacts (bool, optional) – Whether to only fetch view reaction/views made by our contacts

  • reactions_first (bool, optional) – Whether to return storyView info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting storyViews with an associated reaction first in the list). Ignored if forwards_first is set.

  • forwards_first (bool, optional) – If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date.

  • q (str, optional) – Search for specific peers

Returns:

stories.StoryViewsList

TL Schema

stories.getStoryViewsList#7ed23c57
flags:#
just_contacts:flags.0?true
reactions_first:flags.2?true
forwards_first:flags.3?true
peer:InputPeer
q:flags.1?string
id:int
offset:string
limit:int

= stories.StoryViewsList

Parameter Tree

GetStoryViewsList
├── just_contactstrue (optional)
├── reactions_firsttrue (optional)
├── forwards_firsttrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── qstring (optional)
├── idint
├── offsetstring
└── limitint

Example

await app.invoke(
    GetStoryViewsList(
        just_contacts=None,
        reactions_first=None,
        forwards_first=None,
        peer=await app.resolve_peer(chat_id),
        q="text",
        id=0,
        offset="text",
        limit=0,
    )
)