send_msg

send_msg写操作消息
发送消息(按 message_type/群号 自动路由群聊或私聊)

Call via POST http://127.0.0.1:3000/send_msg (JSON params as the body) or WebSocket.

Parameters

Param Type Required Default Description
message message
message_type string
group_id uint
user_id uint
auto_escape bool false

Returns (data)

{ message_id: number }

Returns the standard OneBot envelope; the data shape is not yet documented.

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/send_msg \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"message":"你好","message_type":"","group_id":123456,"user_id":10001,"auto_escape":false}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.