messages.ToggleDialogPin

class pyrogram.raw.functions.messages.ToggleDialogPin

Pin/unpin a dialog

Details:
  • Layer: 187

  • ID: A731E257

Parameters:
  • peer (InputDialogPeer) – The dialog to pin

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

Returns:

bool