telegram api method · layer 229 · #7ed23c57

stories.getStoryViewsList

usable by users

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

definition

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;

parameters

nametypedescription
flags#Flags, see TL conditional fields
just_contactsflags.0?trueWhether to only fetch view reaction/views made by our contacts
reactions_firstflags.2?trueWhether 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_firstflags.3?trueIf set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date.
peerInputPeerPeer where the story was posted
qflags.1?stringSearch for specific peers
idintStory ID
offsetstringOffset for pagination, obtained from stories.storyViewsList.next_offset
limitintMaximum number of results to return, see pagination

returns

stories.StoryViewsList

errors (4)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400PEER_ID_INVALIDThe provided peer id is invalid.
400STORY_ID_INVALIDThe specified story ID is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 160–229 · constructor id changed 2×

idlayers
#4b3b5e97160
#f95f61a4161–163
#7ed23c57164–229