Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>stories_getStoryViewsList_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class stories_getStoryViewsList_
extends Function_<enums.stories.StoryViewsList>
import { stories_getStoryViewsList_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

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

Constructors

new
stories_getStoryViewsList_(params: { just_contacts?: true; reactions_first?: true; forwards_first?: true; peer: enums.InputPeer; q?: string; id: number; offset: string; limit: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
forwards_first: true

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

id: number

Story ID

optional
just_contacts: true

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

limit: number

Maximum number of results to return, see pagination

offset: string

Offset for pagination, obtained from stories.storyViewsList.next_offset

peer: enums.InputPeer

Peer where the story was posted

optional
q: string

Search for specific peers

optional
reactions_first: true

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.

Static Properties

__F: (params: { just_contacts?: true; reactions_first?: true; forwards_first?: true; peer: enums.InputPeer; q?: string; id: number; offset: string; limit: number; }) => enums.stories.StoryViewsList
readonly
[name]: string
readonly
[paramDesc]: ParamDesc