From 604c1713bb6e5d62187d0ae05e06eeb670185445 Mon Sep 17 00:00:00 2001 From: foxplaying <166147707+foxplaying@users.noreply.github.com> Date: Tue, 28 Oct 2025 23:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E8=81=8A=E8=BE=93=E5=85=A5=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recv_handler/notice_handler.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/recv_handler/notice_handler.py b/src/recv_handler/notice_handler.py index 54d04ef..c6916a9 100644 --- a/src/recv_handler/notice_handler.py +++ b/src/recv_handler/notice_handler.py @@ -118,6 +118,20 @@ class NoticeHandler: case NoticeType.group_ban: sub_type = raw_message.get("sub_type") match sub_type: + # 私聊输入状态(“对方正在输入...”) + case "input_status": + user_id = raw_message.get("user_id") + group_id = raw_message.get("group_id", 0) + event_type = raw_message.get("event_type") + status_text = raw_message.get("status_text", "") + # 仅手机私聊有效 + if not group_id or group_id == 0: + if status_text: + logger.info(f"用户 {user_id} {status_text}") + else: + status_map = {1: "正在输入中", 2: "已刷新聊天页面"} + logger.info(f"用户 {user_id} {status_map.get(event_type, '输入状态变更')}") + return case NoticeType.GroupBan.ban: if not await message_handler.check_allow_to_chat(user_id, group_id, True, False): return None