Skip to content

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

ParameterTypeRequiredDescription
chat_idInteger/StringYesUnique identifier for the target chat or username
user_idIntegerYesUnique identifier of the user to approve

Response

Returns Boolean true on success.

json
{
  "ok": true,
  "result": true
}

Error Codes

CodeDescription
400Bad request parameters, e.g. missing required parameters or no pending join request from this user
401Invalid or expired token
403Bot does not have permission to approve join requests
404Chat or user not found
500Internal server error