decline_all_chat_join_requests()

Client.decline_all_chat_join_requests()

Decline all pending join requests in a chat.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier for the target chat or username of the target channel/supergroup (in the format @username). You can also use chat public link in form of t.me/<username> (str).

  • invite_link (str, optional) – Pass an invite link to decline only its join requests. By default, all join requests are declined.

Returns:

bool – True on success.