TranslateText constructor

TranslateText(
  1. {required FormattedText text,
  2. required String to_language_code,
  3. int? extra,
  4. int? clientId}
)

Translates a text to the given language. If the current user is a Telegram Premium user, then text formatting is preserved

Returns FormattedText

Implementation

TranslateText