Layer 224
ChannelsToggleAutotranslation
Toggle autotranslation in a channel, for all users: see here for more info.
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
UpdatesGogram Example
// ChannelsToggleAutotranslation - positional arguments result, err := client.ChannelsToggleAutotranslation(&tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, true) if err != nil { // handle error } // result is *tg.Updates
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |