feat: gocq api router add send_forward_msg

This commit is contained in:
linyuchen 2024-03-25 19:01:28 +08:00
parent 41f0e8f574
commit 429d8deb5c

View File

@ -6,8 +6,6 @@ export class GoCQHTTPSendForwardMsg extends SendMsg {
actionName = ActionName.GoCQHTTP_SendForwardMsg;
protected async check(payload: OB11PostSendMsg) {
if (payload.user_id) this.actionName = ActionName.GoCQHTTP_SendPrivateForwardMsg;
if (payload.group_id) this.actionName = ActionName.GoCQHTTP_SendGroupForwardMsg;
if (payload.messages) payload.message = convertMessage2List(payload.messages);
return super.check(payload);
}