ToggleSupergroupJoinByRequest constructor

const ToggleSupergroupJoinByRequest({
  1. required int supergroupId,
  2. required bool joinByRequest,
})

Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right

Implementation

const ToggleSupergroupJoinByRequest({
  required this.supergroupId,
  required this.joinByRequest,
});