Refactor message API types and add elementId to file element

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:
手瓜一十雪 2026-01-22 17:59:11 +08:00
parent bcdee59b61
commit a91933e1d9
3 changed files with 341 additions and 343 deletions

View File

@ -245,7 +245,7 @@ export class NTQQMsgApi {
[
'0',
peer,
msgElements as any,
msgElements,
new Map(),
],
(ret) => ret.result === 0,

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