Authorization: Bearer ********************
{
"file": "string"
}
curl --location --request POST 'http://127.0.0.1:3000/get_file' \
--header 'Content-Type: application/json' \
--data-raw '{
"file": "string"
}'
{
"status": "ok",
"retcode": 0,
"data": {
"file": "C:\\Users\\linyuchen\\Documents\\Downloads\\~.jpg",
"url": "http://xxxx",
"file_size": "59635",
"file_name": "~.jpg",
"base64": "/9j/4AAQSkZJRgABAQEASxxxx" // 文件的 base64 编码, 需要在 LLOneBot 的配置文件中开启 文件转base64
},
"message": "",
"wording": ""
}