Layer 220
method Users
channels.toggleAutotranslation#167fc0a1 channel:InputChannel enabled:Bool = Updates;

Parameters

Name Type Description
Channel InputChannel The channel where to toggle autotranslation.
Enabled Bool Whether to enable or disable autotranslation.

Returns

Updates

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.

Gogram Example

// ChannelsToggleAutotranslation - positional arguments
result, err := client.ChannelsToggleAutotranslation(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, true)
if err != nil {
    // handle error
}
// result is *tg.Updates