发送私聊图片根据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": "private",
"send_id": "cd32cc3b329196c2",
"msg_type": 1,
"message": "https://images.pexels.com/photos/7521066/pexels-photo-7521066.png?auto=compress&cs=tinysrgb&w=1200&lazy=load"
}
}
示例代码
返回响应
成功(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": 1721817871.097048,
"message_id": "尚未实现返回send_msg_id,后续实现(撤回消息功能需要)"
},
"message": "",
"echo": "test_echo"
}
最后修改时间: 8 个月前