File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ title : msg
3+ ---
4+
5+ 未特别说明情况下请求域名均为 https://chat-go.jwzhd.com
6+ 没写请求/响应项目表示不需要相关参数.
7+
8+ ## 发送信息(未完成,请勿参考!)
9+
10+ POST /v1/msg/send-message
11+
12+ 请求头:
13+
14+ | 名称| 必须| 备注|
15+ | ---| ---| ---|
16+ | token| 是| 无|
17+
18+ 请求体: (在发送单种类别的信息是,其余类别的信息属性不需用存在,例如语音信息不存在引用信息)
19+ ``` ProtoBuf
20+ msg_id: "信息ID"
21+ chat_id: "欲发送到的信息对象"
22+ chat_type: "欲发送到的信息对象的类别,1-用户,2-群聊,3-机器人"
23+ data {
24+ msg_text: "信息文本"
25+ quote_msg_text: "引用信息文本"
26+ image_key: "欲发送图片key"
27+ msg_text1: "信息文本"
28+ msg_text2: "信息文本"
29+ temp_text: ""
30+ temp_text: ""
31+ temp_text: ""
32+ temp_code: 0
33+ }
34+ msg_type: 1
35+ temp_code: 0
36+ quote_msg_id: "引用信息ID"
37+ temp_text: ""
38+ ```
39+ ::: details ProtoBuf数据结构
40+ ``` proto
41+ message send-message_send {
42+ string msg_id = 2; // 信息ID
43+ string chat_id = 3; // 欲发送到的信息对象
44+ string chat_type = 4; // 欲发送到的信息对象的类别,1-用户,2-群聊,3-机器人
45+ Data data = 5;
46+ message data {
47+ string msg_text = 1; // 信息文本
48+ string quote_msg_text = 8; // 引用信息文本
49+ string image_key = 9; // 欲发送图片key
50+ string msg_text1 = 11; // 信息文本
51+ string msg_text2 = 12; // 信息文本
52+ string temp_text = 16; // 不知道干啥的
53+ string temp_text = 17; // 不知道干啥的
54+ string temp_text = 23; // 不知道干啥的
55+ uint64 temp_code = 24; // 不知道干啥的
56+ }
57+ uint64 msg_type = 6; // 信息类别,1-文本,2-图片,3-markdown,4-文件,5-表单,6-文章,7-表情,8-html
58+ uint64 temp_code = 7; // 不知道干啥的
59+ string quote_msg_id = 8; // 引用信息ID
60+ string temp_text = 9; // 不知道干啥的
61+ }
62+ ```
63+ :::
64+
65+ 响应体:
66+ ``` ProtoBuf
67+ status {
68+ number: 123456
69+ code: 1
70+ msg: "success"
71+ }
72+ ```
73+ ::: details ProtoBuf数据结构
74+ ``` proto
75+
76+ // 信息发送是否成功状态信息
77+ message get_user {
78+ Status status = 1; // 状态码
79+ }
80+ ```
81+ :::
You can’t perform that action at this time.
0 commit comments