ToggleSupergroupUsernameIsActive constructor

const ToggleSupergroupUsernameIsActive({
  1. required int supergroupId,
  2. required String username,
  3. required bool isActive,
})

Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. The editable username can't be disabled.. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached

Implementation

const ToggleSupergroupUsernameIsActive({
  required this.supergroupId,
  required this.username,
  required this.isActive,
});