From 196e29ced63d0220be645eaf19d6a415ac858564 Mon Sep 17 00:00:00 2001 From: jigsaw Date: Mon, 19 Aug 2024 13:50:25 +0800 Subject: [PATCH] :bug: middleware(obv11): node.type --- nonebot_plugin_all4one/middlewares/onebot_v11.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_all4one/middlewares/onebot_v11.py b/nonebot_plugin_all4one/middlewares/onebot_v11.py index 6d46f97..ae38f0a 100644 --- a/nonebot_plugin_all4one/middlewares/onebot_v11.py +++ b/nonebot_plugin_all4one/middlewares/onebot_v11.py @@ -167,7 +167,7 @@ async def to_onebot_message(self, message: Message) -> OneBotMessage: resp = await self.bot.get_forward_msg(id=segment.data["id"]) nodes = [] for node in resp["message"]: - if node.type == "forward": + if node["type"] == "forward": continue nodes.append( {