Layer 220
method Users
stories.togglePinned#9a75a1ef peer:InputPeer id:Vector<int> pinned:Bool = Vector<int>;

Parameters

Name Type Description
Peer InputPeer Peer where to pin or unpin stories
Id Vector<int> IDs of stories to pin or unpin
Pinned Bool Whether to pin or unpin the stories

Returns

Vector

Possible Errors

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

Gogram Example

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