UpdatePinnedMessage

class pyrogram.raw.functions.messages.UpdatePinnedMessage

Pin a message.

Details
  • Layer: 122

  • ID: 0xd2aaf7ec

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 – Object which is perceived by the client without a call on its part when an event occurs.