Skip to content

approveChatJoinRequest

批准用户的加群请求。Bot 必须是该聊天的管理员且拥有 can_invite_users 权限。

请求

POST /:token/approvechatjoinrequest

参数

参数类型必填描述
chat_idInteger/String目标聊天的唯一标识符或用户名
user_idInteger要批准的用户唯一标识符

响应

成功时返回 Boolean 值 true

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

错误码

错误码描述
400请求参数错误,如缺少必填参数或该用户无待处理的加群请求
401Token 无效或已过期
403Bot 无权批准加群请求
404聊天或用户不存在
500服务器内部错误