stories.getStoriesByID #

Obtain full info about a set of stories by their IDs.

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.getStoriesByID#5774ca74 peer:InputPeer id:Vector<int> = stories.Stories;

Parameters #

NameTypeDescription
peerInputPeerPeer where the stories were posted
idVector<int>Story IDs

Result #

stories.Stories

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
400STORIES_NEVER_CREATEDThis peer hasn't ever posted any stories.
400STORY_ID_EMPTYYou specified no story IDs.

Telegram Stories #

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