node-karin 0.12.19 → 0.12.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -206,12 +206,12 @@ export class AdapterOneBot11 {
|
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
208
208
|
const content = this.KarinConvertAdapter(i.content);
|
|
209
|
-
const userId =
|
|
209
|
+
const userId = Number(i.user_id || selfUin);
|
|
210
210
|
const nickname = String(i.nickname || selfNick);
|
|
211
211
|
messages.push({ type, data: { user_id: userId, nickname, content } });
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
const params = { [messageType]:
|
|
214
|
+
const params = { [messageType]: Number(peer), messages };
|
|
215
215
|
return await this.SendApi("send_forward_msg" /* OB11Api.sendForwardMsg */, params);
|
|
216
216
|
}
|
|
217
217
|
/**
|