Layer 220
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

Bool

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.

Gogram Example

// StoriesTogglePinnedToTop - positional arguments
result, err := client.StoriesTogglePinnedToTop(&tg.InputPeerUser{UserID: int64(123456789)}, []int{})
if err != nil {
    // handle error
}
// result is *tg.Bool