TranslateMessageText constructor

TranslateMessageText(
  1. {required int chat_id,
  2. required int message_id,
  3. required String to_language_code,
  4. int? extra,
  5. int? clientId}
)

Extracts text or caption of the given message and translates it to the given language. If the current user is a Telegram Premium user, then text formatting is preserved

Returns FormattedText

Implementation

TranslateMessageText