toggleAutotranslation method
Future<Result<UpdatesBase> >
toggleAutotranslation({
- required InputChannelBase channel,
- required bool enabled,
Toggle Autotranslation.
ID: 167fc0a1.
Implementation
Future<Result<UpdatesBase>> toggleAutotranslation({
required InputChannelBase channel,
required bool enabled,
}) async {
// Preparing the request.
final request = ChannelsToggleAutotranslation(
channel: channel,
enabled: enabled,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UpdatesBase>();
}