messages.togglePeerTranslations #

Show or hide the real-time chat translation popup for a certain chat

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.togglePeerTranslations#e47cb579 flags:# disabled:flags.0?true peer:InputPeer = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
disabledflags.0?trueWhether to disable or enable the real-time chat translation popup
peerInputPeerThe peer

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

Message translation #

Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.