Raw.stories.GetStoryViewsList

Raw.stories.GetStoryViewsList

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

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;
export namespace Raw {
  export namespace stories {
    export class GetStoryViewsList {
      constructor(params: {
        justContacts?: boolean;
        reactionsFirst?: boolean;
        forwardsFirst?: boolean;
        peer: Raw.TypeInputPeer;
        q?: string;
        id: number;
        offset: string;
        limit: number;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x7ed23c57

Property

  • justContacts : boolean or undefined

    Whether to only fetch view reaction/views made by our contacts

  • reactionsFirst : boolean or undefined

    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 forwardsFirst is set.

  • forwardsFirst : boolean or undefined

    If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date.

  • peer : Raw.TypeInputPeer

    Peer where the story was posted

  • q : string or undefined

    Search for specific peers

  • id : number

    Story id

  • offset : string

    Offset for pagination, obtained from stories.storyviewslist.nextOffset

  • limit : number

    Maximum number of results to return, see pagination

Results

Raw.stories.TypeStoryViewsList