mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: DownloadFile接口参数url和base64二选一即可
This commit is contained in:
parent
7ad384d407
commit
bfb67188ce
@ -23,8 +23,8 @@ interface FileResponse {
|
|||||||
export class DownloadFile extends BaseAction<Payload, FileResponse> {
|
export class DownloadFile extends BaseAction<Payload, FileResponse> {
|
||||||
actionName = ActionName.GoCQHTTP_DownloadFile
|
actionName = ActionName.GoCQHTTP_DownloadFile
|
||||||
payloadSchema = Schema.object({
|
payloadSchema = Schema.object({
|
||||||
url: String,
|
url: Schema.string(),
|
||||||
base64: String,
|
base64: Schema.string(),
|
||||||
headers: Schema.union([String, Schema.array(String)])
|
headers: Schema.union([String, Schema.array(String)])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user