Skip to content

Commit 869e8c6

Browse files
Kauid323yyyytawa
authored andcommitted
Update bot.md
1 parent a7b6465 commit 869e8c6

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

src/api/v1/bot.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,72 @@ POST /v1/bot/new-list
7373
"msg": "success" // 返回消息
7474
}
7575
```
76+
77+
#### 使用该机器人的群组(该注释含有较多不知道的字段,请谨慎使用)
78+
79+
POST /v1/bot/bot-detail
80+
81+
请求头:
82+
83+
|名称|必须|备注|
84+
|-----|-----|-----|
85+
|token|||
86+
87+
请求体:
88+
```JSONC
89+
{
90+
"id": "30473864" // 机器人id
91+
}
92+
```
93+
94+
响应体:
95+
```JSONC
96+
{
97+
"code": 1, // 请求状态码,1为正常
98+
"data": {
99+
"bot": {
100+
"id": 1, // 排序id(?
101+
"botId": "30473864", // 机器人id
102+
"nickname": "云湖AI助手", //机器人名字
103+
"nicknameId": 151394, // 名称id
104+
"avatarId": 29016, // 头像id
105+
"avatarUrl": "https://chat-img.jwznb.com/cb1a825a1f7e4c5f782dc79200961907.png", // 头像url
106+
"type": 0, // 类型
107+
"introduction": "官方的机器人,AI机器人。本机器人所有输出内容均由AI生成。", // 机器人介绍
108+
"createBy": "7058262", // 机器人创建者id
109+
"createTime": 1639670120, // 机器人创建时间戳
110+
"headcount": 115177, // 机器人使用人数
111+
"private": 0, // 是否私有(0为否,1为私人)
112+
"isStop": 0, // 是否停用(0为启用,1为停用)
113+
"settingJson": "", // 设置json
114+
"del_flag": 0,
115+
"alwaysAgree": 1, // 是否总是同意添加群聊
116+
"banId": 0, // 顾名思义
117+
"uri": "https://chat-go.jwzhd.com/open-apis/v1/bot/send?token=" // 机器人发送消息url(?
118+
},
119+
"groups": [
120+
{
121+
"id": 0, // 排序 (不知道为什么很多字段没有值,而客户端加入这个群显示群聊信息正常)
122+
"groupId": "161466900", // 群组id
123+
"name": "每日科技", // 群聊名字
124+
"introduction": "每天分享互联网科技信息", // 群聊介绍
125+
"createBy": "", // 群聊创建者id
126+
"createTime": 0, // 群聊创建时间
127+
"avatarId": 0, // 群聊头像id
128+
"del_flag": 0,
129+
"avatarUrl": "https://chat-img.jwznb.com/6eedb15cae0e7ddc59e8ae19a234c33c.png", // 群聊头像url
130+
"headcount": 0, // 群聊人数
131+
"readHistory": 0, // 是否启用新成员查看历史记录
132+
"alwaysAgree": 0, // 是否总是直接加入群聊
133+
"categoryId": 0, // 类别id
134+
"category": "", // 类别
135+
"private": 0, // 群聊是否私有
136+
"banId": 0, // ban人的id
137+
"gag": 0,
138+
"gagBy": "",
139+
"msgTypeLimit": ""
140+
},
141+
// ...
142+
},
143+
"msg": "success" // 返回消息
144+
}

0 commit comments

Comments
 (0)