Layer 220
method Users

Parameters

Name Type Description
Channel InputChannel The forum
Enabled Bool The new value of the view_forum_as_messages flag.

Returns

Updates

Possible 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