发送群消息
开发中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": "813468086",
"msg_type": 0,
"message": "你好,这是一条测试消息"
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
retcode
integer
必需
data
object
必需
time
number
必需
message_id
string
必需
message
string
必需
echo
string
必需
示例
{
"status": "ok",
"retcode": 0,
"data": {
"time": 1721635107.841944,
"message_id": "尚未实现返回send_msg_id,后续实现(撤回消息功能需要)"
},
"message": "",
"echo": "test_echo"
}
最后修改时间: 8 个月前