TranslateMessageText constructor

const TranslateMessageText({
  1. required int chatId,
  2. required int messageId,
  3. required String toLanguageCode,
})

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

Implementation

const TranslateMessageText({
  required this.chatId,
  required this.messageId,
  required this.toLanguageCode,
});