messages.toggleSavedDialogPin

Pin or unpin a saved message dialog ».

 Method schema is available as of layer 170. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
pinned flags.0?true Whether to pin or unpin the dialog
peer InputDialogPeer The dialog to pin

Result

Bool

Possible errors

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

Related pages

Saved messages

The Saved Messages chat allows users to bookmark messages and media: it's a personal cloud storage for any messages or media you may want to send or forward there.