mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
feat: gocq api router add send_forward_msg
This commit is contained in:
parent
41f0e8f574
commit
429d8deb5c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user