mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 08:12:14 +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
|
event: PrivateMessageEventDetail
|
||||||
|
|
||||||
|
|
||||||
|
class NoticeEvent(Event):
|
||||||
|
#TODO:实现该事件
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
class MessageReader(BaseModel):
|
class MessageReader(BaseModel):
|
||||||
reader_id: UserId
|
reader_id: UserId
|
||||||
read_time: str
|
read_time: str
|
||||||
@ -227,16 +232,11 @@ class MessageReadEventDetail(BaseModel):
|
|||||||
message_id_list: List[str]
|
message_id_list: List[str]
|
||||||
|
|
||||||
|
|
||||||
class MessageReadEvent(Event):
|
class MessageReadEvent(NoticeEvent):
|
||||||
__event__ = "im.message.message_read_v1"
|
__event__ = "im.message.message_read_v1"
|
||||||
event: MessageReadEventDetail
|
event: MessageReadEventDetail
|
||||||
|
|
||||||
|
|
||||||
class NoticeEvent(Event):
|
|
||||||
#TODO:实现该事件
|
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
_t = StringTrie(separator=".")
|
_t = StringTrie(separator=".")
|
||||||
|
|
||||||
# define `model` first to avoid globals changing while `for`
|
# define `model` first to avoid globals changing while `for`
|
||||||
|
Loading…
Reference in New Issue
Block a user