Layer 220
StoriesTogglePeerStoriesHidden
Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here for more info.
method
Users
stories.togglePeerStoriesHidden#bd0415c4 peer:InputPeer hidden:Bool = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer whose stories should be (un)hidden. |
| Hidden | Bool | Whether to hide or unhide stories. |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// StoriesTogglePeerStoriesHidden - positional arguments result, err := client.StoriesTogglePeerStoriesHidden(&tg.InputPeerUser{UserID: int64(123456789)}, true) if err != nil { // handle error } // result is *tg.Bool