approve_all_community_peer_links()¶
- Client.approve_all_community_peer_links()¶
Approve or reject all pending peer link requests in a community.
Usable by Users Bots- Parameters:
community_id (
int|str) – The community channel.reject (
bool, optional) – Pass True to reject all instead of approving. Defaults to False.
- Returns:
bool– True on success.- Raises:
ChatAdminRequired – The user is not an admin of the community.
Example
await app.approve_all_community_peer_links(community_id)