messages.UpdatePinnedMessage#

class pyrogram.raw.functions.messages.UpdatePinnedMessage#

Pin a message.

Details:
  • Layer: 158

  • ID: D2AAF7EC

Parameters:
  • peer (InputPeer) – The peer where to pin the message.

  • id (int 32-bit) – The message to pin or unpin.

  • silent (bool, optional) – Pin the message silently, without triggering a notification.

  • unpin (bool, optional) – Whether the message should unpinned or pinned.

  • pm_oneside (bool, optional) – Whether the message should only be pinned on the local side of a one-to-one chat.

Returns:

Updates