approveChatJoinRequest
Approve a user's join request. The Bot must be an administrator in the chat and have the can_invite_users permission.
Request
POST /:token/approvechatjoinrequest
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| chat_id | Integer/String | Yes | Unique identifier for the target chat or username |
| user_id | Integer | Yes | Unique identifier of the user to approve |
Response
Returns Boolean true on success.
json
{
"ok": true,
"result": true
}Error Codes
| Code | Description |
|---|---|
| 400 | Bad request parameters, e.g. missing required parameters or no pending join request from this user |
| 401 | Invalid or expired token |
| 403 | Bot does not have permission to approve join requests |
| 404 | Chat or user not found |
| 500 | Internal server error |
