Skip to content

declineChatJoinRequest ​

Decline a user's join request. The Bot must be an administrator in the chat and have the can_invite_users permission.

Request ​

POST /:token/declinechatjoinrequest

Parameters ​

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

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 decline join requests
404Chat or user not found
500Internal server error