mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
🚧 message read event should implement NoticeEvent
This commit is contained in:
parent
c6921c731c
commit
2c056364c1
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user