Layer 220
StoriesTogglePinnedToTop
Pin some stories to the top of the profile, see here for more info.
method
Users
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 ). |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORY_ID_INVALID | The specified story ID is invalid. |
Gogram Example
// StoriesTogglePinnedToTop - positional arguments result, err := client.StoriesTogglePinnedToTop(&tg.InputPeerUser{UserID: int64(123456789)}, []int{}) if err != nil { // handle error } // result is *tg.Bool