messages.TranslateText#
- class pyrogram.raw.functions.messages.TranslateText[source]#
Translate a given text. Styled text entities will only be preserved for Telegram Premium users.
- Details:
Layer:
224ID:
A5EEC345
- Parameters:
- to_lang (
str): Two-letter ISO 639-1 language code of the language to which the message is translated
- peer (
InputPeer, optional): If the text is a chat message, the peer ID
- id (List of
int32-bit, optional): A list of message IDs to translate
- text (List of
TextWithEntities, optional): A list of styled messages to translate
- tone (
str, optional): N/A
- to_lang (
- Returns: