mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-16 21:30:32 +00:00
fix: createSendElements reference
This commit is contained in:
parent
e52b2e6d69
commit
a5c7b88a40
@ -46,7 +46,7 @@ export default class GoCQHTTPUploadPrivateFile extends BaseAction<Payload, null>
|
|||||||
if (!downloadResult.success) {
|
if (!downloadResult.success) {
|
||||||
throw new Error(downloadResult.errMsg);
|
throw new Error(downloadResult.errMsg);
|
||||||
}
|
}
|
||||||
const sendFileEle: SendFileElement = await this.CoreContext.apis.FileApi.createValidSendFileElement(this.CoreContext, downloadResult.path, payload.name);
|
const sendFileEle: SendFileElement = await this.CoreContext.apis.FileApi.createValidSendFileElement(downloadResult.path, payload.name);
|
||||||
await sendMsg(this.CoreContext, peer, [sendFileEle], [], true);
|
await sendMsg(this.CoreContext, peer, [sendFileEle], [], true);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user