发送消息
POST
/api/v1/platform/bots/{bot_uuid}/send_message
通过指定机器人向指定目标发送消息
授权
ApiKeyAuth
使用 X-API-Key 请求头进行 API 密钥认证。
示例:X-API-Key: lbk_your_api_key_here
类型API Key (header: X-API-Key)
参数
路径参数
bot_uuid*
机器人 UUID
类型string
必填请求体
application/json
JSON
{
"target_type": "group",
"target_id": "123456789",
"message_chain": [
{
"type": "Plain",
"text": "Hello, World!"
}
]
}
响应
发送成功
application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"sent": true
}
}
