Update type hints and allow InternalEventTypes for @event.on
This commit is contained in:
parent
ed6055744f
commit
7fcb7cbf0a
2 changed files with 6 additions and 5 deletions
|
@ -73,7 +73,7 @@ class MaubotMessageEvent(MessageEvent):
|
|||
def mark_read(self) -> Awaitable[None]:
|
||||
return self.client.send_receipt(self.room_id, self.event_id, "m.read")
|
||||
|
||||
def react(self, key: str) -> Awaitable[None]:
|
||||
def react(self, key: str) -> Awaitable[EventID]:
|
||||
return self.client.react(self.room_id, self.event_id, key)
|
||||
|
||||
def edit(self, content: Union[str, MessageEventContent],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue