🚧 message read event should implement NoticeEvent

This commit is contained in:
StarHeartHunt 2021-07-09 16:18:19 +08:00
parent c6921c731c
commit 2c056364c1

View File

@ -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`