发送群消息根据uuid
开发中POST
/send_message请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer rikka-bot
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
action
string
必需
echo
string
必需
params
object
必需
detail_type
string
必需
send_id
string
必需
msg_type
integer
必需
message
string
必需
示例1
{
"action": "send_message",
"echo": "test_echo",
"params": {
"detail_type": "group",
"send_id": "a7e3de9a0dc31245",
"msg_type": 0,
"message": "test"
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
retcode
integer
必需
data
object
必需
time
number
必需
message_id
string
必需
message
string
必需
echo
string
必需
示例
异常示例
{
"status": "failed",
"retcode": 20002,
"data": null,
"message": "发送消息错误 err: sendTextByUuid failed: group not found"
}
最后修改时间: 8 个月前