From 2c056364c1982868f3e3595ac2979f94369396d6 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Fri, 9 Jul 2021 16:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20message=20read=20event=20should?= =?UTF-8?q?=20implement=20`NoticeEvent`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nonebot/adapters/feishu/event.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py index 55d5247f..a31badab 100644 --- a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py +++ b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py @@ -216,6 +216,11 @@ class PrivateMessageEvent(MessageEvent): event: PrivateMessageEventDetail +class NoticeEvent(Event): + #TODO:实现该事件 + ... + + class MessageReader(BaseModel): reader_id: UserId read_time: str @@ -227,16 +232,11 @@ class MessageReadEventDetail(BaseModel): message_id_list: List[str] -class MessageReadEvent(Event): +class MessageReadEvent(NoticeEvent): __event__ = "im.message.message_read_v1" event: MessageReadEventDetail -class NoticeEvent(Event): - #TODO:实现该事件 - ... - - _t = StringTrie(separator=".") # define `model` first to avoid globals changing while `for`