Layer 220
StoriesGetPinnedStories
Fetch the stories pinned on a peer's profile.
method
Users
stories.getPinnedStories#5821a5dc peer:InputPeer offset_id:int limit:int = stories.Stories;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer whose pinned stories should be fetched |
| OffsetId | int | Offsets for pagination, for more info click here |
| Limit | int | Maximum number of results to return, see pagination |
Returns
stories.StoriesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |
Gogram Example
// StoriesGetPinnedStories - positional arguments result, err := client.StoriesGetPinnedStories(&tg.InputPeerUser{UserID: int64(123456789)}, 0, 0) if err != nil { // handle error } // result is *tg.StoriesStories