Raw.messages.TranslateText
Translate a given text.
messages.translateText#63183030 flags:# peer:flags.0?InputPeer id:flags.0?Vector<int> text:flags.1?Vector<TextWithEntities> to_lang:string = messages.TranslatedText;
export namespace Raw {
export namespace messages {
export class TranslateText {
constructor(params: {
peer?: Raw.TypeInputPeer;
id?: Array<number>;
text?: Array<Raw.TypeTextWithEntities>;
toLang: string;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x63183030
Property
peer
: Raw.TypeInputPeer or undefinedIf the text is a chat message, the peer id
id
: Array of number or undefinedA list of message ids to translate
text
: Array of Raw.TypeTextWithEntities or undefinedA list of styled messages to translate
toLang
: stringTwo-letter iso 639-1 language code of the language to which the message is translated