stories.togglePinnedToTop #
Pin some stories to the top of the profile, see here » for more info.¶
Layer 223
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
stories.togglePinnedToTop#b297e9b peer:InputPeer id:Vector<int> = Bool; Parameters #
| Name | Type | Description |
|---|---|---|
| peer | InputPeer | Peer where to pin stories. |
| id | Vector<int> | IDs of the stories to pin (max stories_pinned_to_top_count_max). |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORY_ID_INVALID | The specified story ID is invalid. |
Related pages #
Client configuration #
The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.¶
Telegram Stories #
Telegram users and channels can easily post and view stories through the API.¶