Function toggle_supergroup_join_by_request

Source
pub async fn toggle_supergroup_join_by_request(
    supergroup_id: i64,
    join_by_request: bool,
    client_id: i32,
) -> Result<(), Error>
Expand description

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

ยงArguments

  • supergroup_id - Identifier of the channel
  • join_by_request - New value of join_by_request
  • client_id - The client id to send the request to