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.
Method schema is available as of layer 167. Switch »
Name | Type | Description |
---|---|---|
channel | InputChannel | The forum |
enabled | Bool | The new value of the view_forum_as_messages flag. |
Code | Type | Description |
---|---|---|
400 | CHANNEL_INVALID | The provided channel is invalid. |
Telegram allows creating forums with multiple distinct topics.
Full info about a channel, supergroup or gigagroup.
When updating the local peer database », all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren't set in the new constructor).
Chat
Users may also choose to display messages from all topics 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 the channels.toggleViewForumAsMessages method; invoking this method will update the value of the view_forum_as_messages
flag of channelFull or dialog and emit an updateChannelViewForumAsMessages.