Layer 220
ChannelsToggleViewForumAsMessages
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.
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | The forum |
| Enabled | Bool | The new value of the view_forum_as_messages flag. |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
Gogram Example
// ChannelsToggleViewForumAsMessages - positional arguments result, err := client.ChannelsToggleViewForumAsMessages(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, true) if err != nil { // handle error } // result is *tg.Updates