messages.ToggleNoForwards#

class pyrogram.raw.functions.messages.ToggleNoForwards#

Enable or disable content protection on a channel, group or private chat.

Usable by Users Bots
Details:
  • Layer: 225

  • ID: B2081A35

Parameters:
  • peer (InputPeer) – The chat or channel

  • enabled (bool) – Enable or disable content protection

  • request_msg_id (int 32-bit, optional) – Used only inside private chats to accept or refuse a request to disable content protection, see here » for more info on the full flow.

Returns:

Updates