pin_saved_dialog()

Client.pin_saved_dialog()

Pin or unpin a saved messages dialog.

Usable by Users Bots
Parameters:
  • peer (int | str) – Unique identifier (int) or username (str) of the chat.

  • pinned (bool, optional) – Whether to pin or unpin the dialog. Defaults to True (pin).

Returns:

bool – True on success.