From 367b8a5e5df773ad86c65c5d8cef4417115a6aff Mon Sep 17 00:00:00 2001 From: snowyServer Date: Fri, 22 Mar 2024 10:24:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=8B=E4=BB=B6=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E7=9A=84=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/liteyuki_markdowntest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/liteyuki_markdowntest.py b/src/plugins/liteyuki_markdowntest.py index 6960e912..b9d1cb28 100644 --- a/src/plugins/liteyuki_markdowntest.py +++ b/src/plugins/liteyuki_markdowntest.py @@ -38,11 +38,12 @@ last_sent = None @md_conv.handle() -async def _(bot: v11.Bot, event: v11.MessageEvent, arg: v11.Message = CommandArg()): +async def _(bot: v11.Bot, event: T_MessageEvent, arg: v11.Message = CommandArg()): if str(event.user_id) == str(bot.self_id) and str(bot.self_id) in ["2751454815"]: nonebot.logger.info("开始处理:%s" % str(event.message_id)) - data = await send_markdown(str(arg), bot, event=event) + data = await send_markdown(str(arg), bot, message_type=event.message_type, + session_id=event.user_id if event.message_type == "private" else event.group_id) await bot.delete_msg(message_id=event.message_id)