ComposeTextWithAi constructor

const ComposeTextWithAi({
  1. required FormattedText text,
  2. required String translateToLanguageCode,
  3. required String styleName,
  4. required bool addEmojis,
})

Changes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests

Implementation

const ComposeTextWithAi({
  required this.text,
  required this.translateToLanguageCode,
  required this.styleName,
  required this.addEmojis,
});