toggle_auto_translation()

async Client.toggle_auto_translation()

Toggle automatic message translation for a channel.

Usable by Users Bots
Parameters:

enabled (bool) – Whether auto-translation is enabled

Returns:

Message

Example

await app.toggle_auto_translation(chat_id, ...)