Rework methods to manage event handlers

This commit is contained in:
Lonami Exo
2022-01-28 14:12:32 +01:00
parent 9726169a8c
commit 0802f7e6b2
8 changed files with 184 additions and 54 deletions

View File

@@ -788,3 +788,4 @@ it's now
this also means filters are unified, although not all have an effect on all events. from_users renamed to senders. messageread inbox is gone in favor of outgoing/incoming.
events.register, unregister, is_handler and list are gone. now you can typehint instead.
def handler(event: events.NewMessage)
client.on, add, and remove have changed parameters/retval