Show or hide the real-time chat translation popup for a certain chat
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.togglePeerTranslations#e47cb579 flags:# disabled:flags.0?true peer:InputPeer = Bool;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
disabled | flags.0?true | Whether to disable or enable the real-time chat translation popup |
peer | InputPeer | The peer |
Code | Type | Description |
---|---|---|
400 | PEER_ID_INVALID | The provided peer id is invalid. |
Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.