mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.5 KiB
1.5 KiB
title | description | nav_exclude | image |
---|---|---|---|
updateChannelViewForumAsMessages | 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. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: updateChannelViewForumAsMessages
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.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
channel_id | long | Yes | The forum ID |
enabled | Bool | Yes | The new value of the toggle. |
Type: Update
Example:
$updateChannelViewForumAsMessages = ['_' => 'updateChannelViewForumAsMessages', 'channel_id' => long, 'enabled' => Bool];