upload_private_file

upload_private_file写操作群文件
上传私聊文件

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

Parameters

Param Type Required Default Description
user_id uint
file string
name string ""
upload_file bool true

Returns (data)

{ file_id: string }

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/upload_private_file \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"user_id":10001,"file":"","name":"","upload_file":true}'
Using an AI assistant?

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