stories.getStoriesArchive #

Fetch the story archive » of a peer we control.

Layer 223

stories.stories#63c3dd0a flags:# count:int stories:Vector<StoryItem> pinned_to_top:flags.0?Vector<int> chats:Vector<Chat> users:Vector<User> = stories.Stories;
---functions---
stories.getStoriesArchive#b4352016 peer:InputPeer offset_id:int limit:int = stories.Stories;

Parameters #

NameTypeDescription
peerInputPeerPeer whose archived stories should be fetched
offset_idintOffsets for pagination, for more info click here
limitintMaximum number of results to return, see pagination

Result #

stories.Stories

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PEER_ID_INVALIDThe provided peer id is invalid.

Pagination in the API #

How to fetch results from large lists of objects.

Telegram Stories #

Telegram users and channels can easily post and view stories through the API.