cURL
curl --request POST \ --url http://localhost:5300/api/v1/platform/bots/{bot_uuid}/send_message \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "target_id": "<string>", "message_chain": [ { "type": "Plain", "text": "Hello, World!" } ] } '
{ "code": 0, "data": { "sent": true } }
通过指定的机器人向目标发送消息。仅支持 API Key 认证。
Documentation IndexFetch the complete documentation index at: https://docs.langbot.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
Use this file to discover all available pages before exploring further.
目标类型
person
group
目标 ID(用户 ID 或群组 ID)
消息链
Show child attributes
[ { "type": "Plain", "text": "Hello, World!" }]
发送成功
0