Refactor message API types and add elementId to file element
Release NapCat / validate-version (push) Canceled after 0s
Release NapCat / Build-Framework (push) Canceled after 0s
Release NapCat / Build-Shell (push) Canceled after 0s
Release NapCat / Download-QNX64 (push) Canceled after 0s
Release NapCat / release-napcat (push) Canceled after 0s

Removed unnecessary type casting in NTQQMsgApi, added missing elementId property to fileElement in NTQQOnlineApi, and updated NodeIKernelMsgService to use SendMessageElement for sendMsg. Also standardized method signatures and formatting for improved type safety and consistency.
This commit is contained in:
手瓜一十雪 committed 2026-01-22 17:59:11 +08:00
1 parent 6ec5bbeddf
commit 2daddbb030
3 files changed
+341 -343

No files matched your search

+1 -1
View File
@@ -245,7 +245,7 @@ export class NTQQMsgApi {
[
'0',
peer,
msgElements as any,
msgElements,
new Map(),
],
(ret) => ret.result === 0,
+1
View File
@@ -31,6 +31,7 @@ export class NTQQOnlineApi {
const fileElementToSend = [{
elementType: 23,
elementId: '',
fileElement: {
fileName: actualFileName,
filePath,
File diff suppressed because it is too large. Load diff