stories.getPinnedStories
Fetch the stories pinned on a peer's profile.
func (c *Client) StoriesGetPinnedStories(ctx context.Context, request *StoriesGetPinnedStoriesRequest) (*StoriesStories, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesGetPinnedStories(ctx, &tg.StoriesGetPinnedStoriesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *StoriesStories
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer whose pinned stories should be fetched |
OffsetID | int | yes | Offsets for pagination, for more info click here |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible 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. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.getPinnedStories#5821a5dc