approve_community_peer_link()¶
- Client.approve_community_peer_link()¶
Approve or reject a peer link request in a community.
Usable by Users Bots- Parameters:
community_id (
int|str) – The community channel.peer_id (
int|str) – The peer whose request to approve or reject.reject (
bool, optional) – Pass True to reject 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_community_peer_link(community_id, peer_id) await app.approve_community_peer_link(community_id, peer_id, reject=True)