From 6b9cb8055075e08224321fc54225b0143b188528 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Tue, 24 Oct 2023 10:53:10 +0800 Subject: [PATCH] :bug: ensure event.to_me is set --- nonebot/adapters/feishu/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nonebot/adapters/feishu/bot.py b/nonebot/adapters/feishu/bot.py index b9ee066..02c567e 100644 --- a/nonebot/adapters/feishu/bot.py +++ b/nonebot/adapters/feishu/bot.py @@ -74,8 +74,9 @@ def _is_at_me_seg(segment: MessageSegment) -> bool: last_msg_seg = message[i] if _is_at_me_seg(last_msg_seg): - deleted = True del message[i:] + deleted = True + event.to_me = True if not message: message.append(MessageSegment.text(""))