toggle_supergroup_join_to_send_messages

Function toggle_supergroup_join_to_send_messages 

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

Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members administrator right

ยงArguments

  • supergroup_id - Identifier of the supergroup
  • join_to_send_messages - New value of join_to_send_messages
  • client_id - The client id to send the request to