Skip to content

Commit 6de31fd

Browse files
committed
Update bot.md
1 parent 5f2aaa3 commit 6de31fd

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

src/api/v1/bot.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,34 @@ POST /v1/bot/edit-setting-json
225225
"msg": "success" // 返回消息
226226
}
227227
```
228+
229+
## 更改机器人信息
230+
231+
POST /v1/bot/web-edit-bot
232+
233+
请求头:
234+
235+
|名称|必须|备注|
236+
|-----|-----|-----|
237+
|token|是|无|
238+
239+
请求体:
240+
241+
```JSONC
242+
{
243+
"nickname":"测试机器人名称", // 机器人名称
244+
"introduction":"测试机器人简介", // 机器人简介
245+
"avatarUrl":"https://...", //机器人头像
246+
"botId":"123", // 机器人ID
247+
"private":0 // 0-公开,1-私有
248+
}
249+
```
250+
251+
响应体:
252+
253+
```JSONC
254+
{
255+
"code": 1, // 请求状态码,1为正常
256+
"msg": "success" // 返回消息
257+
}
258+
```

0 commit comments

Comments
 (0)