feat: 添加通知消息处理功能,支持戳一戳、禁言等事件,并更新相关逻辑

This commit is contained in:
Windpicker-owo
2025-11-27 22:54:58 +08:00
parent 3538716515
commit a06510b9b6
4 changed files with 187 additions and 35 deletions

View File

@@ -210,8 +210,9 @@ class NoticeHandler:
msg_builder.seg_list([handled_segment])
# 设置 additional_config包含 notice 相关配置)
res = msg_builder.build()["message_info"]["additional_config"] = notice_config
return res
envelope = msg_builder.build()
envelope["message_info"]["additional_config"] = notice_config
return envelope
async def _handle_poke_notify(
self, raw: Dict[str, Any], group_id: Any, user_id: Any