ToggleSupergroupHasAutomaticTranslation constructor

const ToggleSupergroupHasAutomaticTranslation({
  1. required int supergroupId,
  2. required bool hasAutomaticTranslation,
})

Toggles whether messages are automatically translated in the channel chat; requires can_change_info administrator right in the channel. The chat must have at least chatBoostFeatures.min_automatic_translation_boost_level boost level to enable automatic translation

Implementation

const ToggleSupergroupHasAutomaticTranslation({
  required this.supergroupId,
  required this.hasAutomaticTranslation,
});