docs: todo #819
This commit is contained in:
1 parent
3ac618bb4e
commit
88b1ee8c31
1 file changed
+13
@@ -654,6 +654,19 @@ export class OneBotMsgApi {
|
|||||||
[OB11MessageDataType.node]: async () => undefined,
|
[OB11MessageDataType.node]: async () => undefined,
|
||||||
|
|
||||||
[OB11MessageDataType.forward]: async ({ data }, context) => {
|
[OB11MessageDataType.forward]: async ({ data }, context) => {
|
||||||
|
// let id = data.id.toString();
|
||||||
|
// let peer: Peer | undefined = context.peer;
|
||||||
|
// if (isNumeric(id)) {
|
||||||
|
// let msgid = '';
|
||||||
|
// if (BigInt(data.id) > 2147483647n) {
|
||||||
|
// peer = MessageUnique.getPeerByMsgId(id)?.Peer;
|
||||||
|
// msgid = id;
|
||||||
|
// } else {
|
||||||
|
// let data = MessageUnique.getMsgIdAndPeerByShortId(parseInt(id));
|
||||||
|
// msgid = data?.MsgId ?? '';
|
||||||
|
// peer = data?.Peer;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
const jsonData = ForwardMsgBuilder.fromResId(data.id);
|
const jsonData = ForwardMsgBuilder.fromResId(data.id);
|
||||||
return this.ob11ToRawConverters.json({
|
return this.ob11ToRawConverters.json({
|
||||||
data: { data: JSON.stringify(jsonData) },
|
data: { data: JSON.stringify(jsonData) },
|
||||||
|
|||||||
Reference in new issue
Block a user