stories.getPinnedStories

Fetch the stories pinned on a peer's profile.

 Method schema is available as of layer 164. Switch ยป

Parameters

Name Type Description
peer InputPeer Peer whose pinned stories should be fetched
offset_id int Offsets for pagination, for more info click here
limit int Maximum number of results to return, see pagination

Result

stories.Stories

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.
400 USER_ID_INVALID The provided user ID is invalid.

Related pages

Pagination in the API

How to fetch results from large lists of objects.

Stories

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