get_file

get_file只读扩展
获取文件信息(仅图片/语音缓存;群文件请用 get_group_file_url)

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

Parameters

Param Type Required Default Description
file_id string ""
file string ""

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

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