File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ POST /v1/bot/bot-info
270270请求体:
271271
272272` ` ` ProtoBuf
273- i : 123 // 机器人ID
273+ id : 123 // 机器人ID
274274` ` `
275275
276276::: details ProtoBuf数据结构
@@ -339,3 +339,72 @@ message bot_info {
339339` ` `
340340
341341:::
342+
343+ ## 获取机器人群聊看板
344+
345+ POST /v1/bot/board
346+
347+ 请求头:
348+
349+ |名称|必须|备注|
350+ |-----|----|----|
351+ |token|是|无|
352+
353+ 请求体:
354+
355+ ` ` ` ProtoBuf
356+ id: 123 // 群聊ID
357+ chat_type: 2 // 对象类型 1-用户 2-群聊 3-机器人
358+ ` ` `
359+
360+ ::: details ProtoBuf数据结构
361+
362+ ` ` ` proto
363+ // 看板
364+ message board_send {
365+ string id = 3 ; // 群聊/用户/机器人ID
366+ int64 chat_type = 4 ; // 对象类型 1-用户 2-群聊 3-机器人
367+ }
368+ ` ` `
369+
370+ :::
371+
372+ 响应体:
373+
374+ ` ` ` ProtoBuf
375+ status {
376+ number: 114514
377+ code: 1
378+ msg: " success"
379+ }
380+ Board_data {
381+ bot_id: " 123" // 机器人ID
382+ chat_id: " 123" // 对象ID
383+ chat_type: 2 // 对象类别,2-群聊,3-机器人
384+ content: " 测试看板内容" // 看板内容
385+ content_type = 5 ; // 看板内容类别,1-文本,2-markdown,3-html
386+ last_update_time: 123123123 // 最后更新时间戳
387+ bot_name: " 测试机器人名称" // 设置看板机器人名称
388+ }
389+ ` ` `
390+
391+ ::: details ProtoBuf数据结构
392+
393+ ` ` ` proto
394+ // 获取看板返回
395+ message board {
396+ Status status = 1 ;
397+ Board_data data = 2 ;
398+ message Board_data {
399+ string bot_id = 1 ; // 机器人ID
400+ string chat_id = 2 ; // 对象ID
401+ int32 chat_type = 3 ; // 对象类别,2-群聊,3-机器人
402+ string content = 4 ; // 看板内容
403+ int32 content_type = 5 ; // 看板内容类别,1-文本,2-markdown,3-html
404+ int64 last_update_time = 6 ; // 最后更新时间戳
405+ string bot_name = 7 ; // 设置看板机器人名称
406+ }
407+ }
408+ ` ` `
409+
410+ :::
You can’t perform that action at this time.
0 commit comments