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 #

NameTypeDescription
peerInputPeerPeer where to pin stories.
idVector<int>IDs of the stories to pin (max stories_pinned_to_top_count_max).

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.
400STORY_ID_INVALIDThe specified story ID is invalid.

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.