channels.ToggleViewForumAsMessages#

class pyrogram.raw.functions.channels.ToggleViewForumAsMessages#

Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a “View as messages” setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method. Invoking this method will update the value of the view_forum_as_messages flag of channelFull or dialog and emit an updateChannelViewForumAsMessages.

Details:
  • Layer: 211

  • ID: 9738BB15

Parameters:
channel (InputChannel):

The forum

enabled (bool):

The new value of the view_forum_as_messages flag.

Returns:

Updates