set_online_status

set_online_status写操作扩展
设置在线状态

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

Parameters

Param Type Required Default Description
status int
ext_status int 0
battery_status int 100

Returns (data)

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/set_online_status \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"status":0,"ext_status":0,"battery_status":100}'
Using an AI assistant?

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