From a78b60d40ee133d29b4291586c008ac85583c45f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 16 Aug 2024 09:37:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=BF=9B=E4=B8=80=E6=AD=A5=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/action/msg/SendMsg/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/onebot/action/msg/SendMsg/index.ts b/src/onebot/action/msg/SendMsg/index.ts index ea730861..02ce2aa7 100644 --- a/src/onebot/action/msg/SendMsg/index.ts +++ b/src/onebot/action/msg/SendMsg/index.ts @@ -149,6 +149,8 @@ export class SendMsg extends BaseAction { } async _handle(payload: OB11PostSendMsg): Promise<{ message_id: number }> { + if (payload.message_type === 'group') this.contextMode = ContextMode.Group; + if (payload.message_type === 'private') this.contextMode = ContextMode.Private; const peer = await createContext(this.CoreContext, payload, this.contextMode); const messages = normalize(