发送合并转发消息
POST
/send_forward_msg
请求参数
Body 参数application/json
group_id
group_id
One of
user_id
user_id
One of
messages
array[object (一级合并转发消息) {2}]
必需
type
enum<string>
必需
枚举值:
node
data
object
必需
news
array [object {1}]
必需
text
string
必需
prompt
string
外显
summary
string
底下文本
source
string
内容
示例
{
"group_id": "1017767274",
"messages": [
{
"type": "node",
"data": {
"user_id": 97,
"nickname": "达艳",
"content": [
{
"type": "text",
"data": {
"text": "test"
}
}
]
}
}
],
"prompt": "enim est dolore et"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/send_forward_msg' \
--header 'Content-Type: application/json' \
--data-raw '{
"group_id": "1017767274",
"messages": [
{
"type": "node",
"data": {
"user_id": 97,
"nickname": "达艳",
"content": [{
"type":"text",
"data":{
"text":"test"
}
}]
}
}
],
"prompt": "enim est dolore et"
}'
返回响应
🟢200成功
application/json
Body
status
enum<string>
必需
枚举值:
ok
retcode
number
必需
data
object
必需
message
string
必需
wording
string
必需
echo
string | null
必需
示例
{
"status": "ok",
"retcode": 0,
"data": {},
"message": "string",
"wording": "string",
"echo": "string"
}
修改于 2025-01-21 14:06:02