# 获取机器人所在的群数量

该接口用于获取所拥有的机器人所在的群数量和开通数量

请求方式:POST

请求地址:https://$basehost/gateway/qopen/GetRobotGroupNum

body参数

{
    "robot_id": "机器人id"
}
字段 类型 必填 说明
robot_id string 机器人id

返回值:

{
    "data": {
        "num": 5,
        "watch_count": 3
    },
    "errcode": 0,
    "errmsg": "",
    "hint": "U80LqytSGRdlvUKXmOMA"
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
num int 机器人所在群数量
watch_count int 开通群聊数
hint string 请求日志ID

group_list说明

完整请求示例:

curl -X POST \
  https://$basehost/gateway/qopen/GetRobotGroupNum \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
  -d '{
        "robot_id": "机器人id"
      }'
最后更新时间: 2024/10/18 15:59:17