Function process_chat_join_requests

Source
pub async fn process_chat_join_requests(
    chat_id: i64,
    invite_link: String,
    approve: bool,
    client_id: i32,
) -> Result<(), Error>
Expand description

Handles all pending join requests for a given link in a chat

ยงArguments

  • chat_id - Chat identifier
  • invite_link - Invite link for which to process join requests. If empty, all join requests will be processed. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
  • approve - Pass true to approve all requests; pass false to decline them
  • client_id - The client id to send the request to