kevin.yang преди 3 дни
родител
ревизия
16c192817b
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      gateway/core/channels/feishu/http_run_executor.py

+ 6 - 1
gateway/core/channels/feishu/http_run_executor.py

@@ -573,7 +573,12 @@ class FeishuHttpRunApiExecutor:
         task_id = f"task-{uuid.uuid4()}"
 
         typing_placed = False
-        if self._typing_reaction_enabled and reply_context.message_id:
+        # 仅对用户发来的 IM 消息打「输入中」表情;卡片交互 / 表情续跑等事件的 message_id 常为机器人消息,避免对其加 reaction。
+        if (
+            self._typing_reaction_enabled
+            and reply_context.message_id
+            and event.event_type == "message"
+        ):
             try:
                 react_res = await connector.add_message_reaction(
                     reply_context.message_id,