# 获取机器人群聊详细信息

请求方式:POST

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

body参数

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

返回值:

{
  "data": {
    "group": {
      "group_id": "群聊id",
      "name": "群主名称",
      "owner_name": "群主名称",
      "is_watch": true,
      "member_count": 45,
      "created_at": 1716778740,
      "owner_id": "群主id",
      "group_notice": "群公告"
    },
    "admin_account_id_list": [
      "群管理员id1",
      "群管理员id2"
    ]
  },
  "errcode": 0,
  "errmsg": "",
  "hint": "02kTFtFksL3RfhIA26zTEA"
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
hint string 请求日志ID
group_id string 群id
name string 群名称
owner_name string 群主名称
owner_id string 群主id
created_at int 建群时间戳
member_count int 群人数
is_watch bool 是否关注
group_notice string 群公告
admin_account_id_list string arrays 管理员id列表

group_list说明

完整请求示例:

curl -X POST \
  https://$basehost/gateway/qopen/GetRobotGroupInfo \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
  -d '{
          "robot_id": "机器人id",
          "group_id": "群聊id"
      }'
最后更新时间: 2024/7/11 18:01:40