Layer 220
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. toggle View Forum As Messages method; invoking this method will update the value of the view_forum_as_messages flag of channel Full or dialog and emit an update Channel View Forum As Messages.
constructor
Parameters
| Name | Type | Description |
|---|---|---|
| ChannelId | long | The forum ID |
| Enabled | Bool | The new value of the toggle. |
Returns
UpdateGogram Example
// Creating UpdateChannelViewForumAsMessages constructor obj := &tg.UpdateChannelViewForumAsMessages{ ChannelId: int64(0), Enabled: true, }