toggle_peer_translations()¶
- async Client.toggle_peer_translations()¶
Toggle the translation bar for a peer.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.disabled (
bool, optional) – Pass True to disable translations. Defaults to False.
- Returns:
bool– True on success.
Example
await app.toggle_peer_translations(chat_id, disabled=True)