messages.ToggleNoForwards#

class pyrogram.raw.functions.messages.ToggleNoForwards#

Enable or disable content protection on a channel or chat.

Details:
  • Layer: 158

  • ID: B11EAFA2

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

  • enabled (bool) – Enable or disable content protection.

Returns:

Updates