diff --git a/src/onebot11/action/go-cqhttp/GetForwardMsg.ts b/src/onebot11/action/go-cqhttp/GetForwardMsg.ts index faf6c247..b68f3762 100644 --- a/src/onebot11/action/go-cqhttp/GetForwardMsg.ts +++ b/src/onebot11/action/go-cqhttp/GetForwardMsg.ts @@ -7,6 +7,7 @@ import { ActionName } from '../types'; interface Payload { message_id: string; // long msg id + id?: string; // short msg id } interface Response { @@ -17,7 +18,7 @@ export class GoCQHTTGetForwardMsgAction extends BaseAction { actionName = ActionName.GoCQHTTP_GetForwardMsg; protected async _handle(payload: Payload): Promise { - const rootMsg = await dbUtil.getMsgByLongId(payload.message_id); + const rootMsg = await dbUtil.getMsgByLongId( payload.id || payload.message_id); if (!rootMsg) { throw Error('msg not found'); }