telegram api method · layer 229 · #eeb0d625

stories.getAllStories

usable by users

Fetch the List of active (or active and hidden) stories, see here » for more info on watching stories.

definition

stories.getAllStories#eeb0d625 flags:# next:flags.1?true hidden:flags.2?true state:flags.0?string = stories.AllStories;

parameters

nametypedescription
flags#Flags, see TL conditional fields
nextflags.1?trueIf next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here » for more info on the full flow.
hiddenflags.2?trueIf set, fetches the hidden active story list, otherwise fetches the active story list, see here » for more info on the full flow.
stateflags.0?stringIf next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here » for more info on the full flow.

returns

stories.AllStories

errors (2)

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

idlayers
#eeb0d625160–229