translate_rich_message()¶
- Client.translate_rich_message()¶
Translate a rich message.
Usable by Users Bots- Parameters:
to_lang (
str) – Target language code (e.g."en","it").chat_id (
int|str, optional) – Chat containing the rich messages to translate.message_ids (List of
int, optional) – IDs of the rich messages to translate.tone (
str, optional) – Optional tone/style for the translation.
- Returns:
TranslatedRichMessage– Translated content.
Example
result = await app.translate_rich_message("en", chat_id=chat_id, message_ids=[123])