Layer 220
StoriesGetStoriesById
Obtain full info about a set of stories by their IDs.
method
Users
stories.getStoriesByID#5774ca74 peer:InputPeer id:Vector<int> = stories.Stories;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer where the stories were posted |
| Id | Vector<int> | Story IDs |
Returns
stories.StoriesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORIES_NEVER_CREATED | This peer hasn't ever posted any stories. |
| 400 | STORY_ID_EMPTY | You specified no story IDs. |
Gogram Example
// StoriesGetStoriesById - positional arguments result, err := client.StoriesGetStoriesById(&tg.InputPeerUser{UserID: int64(123456789)}, []int{}) if err != nil { // handle error } // result is *tg.StoriesStories