diff --git a/telethon/_client/telegramclient.py b/telethon/_client/telegramclient.py index e38f237e..b4efb9c7 100644 --- a/telethon/_client/telegramclient.py +++ b/telethon/_client/telegramclient.py @@ -2877,6 +2877,7 @@ class TelegramClient: self: 'TelegramClient', callback: updates.Callback = None, event: EventBuilder = None, + *, priority=None, ) -> int: """ diff --git a/telethon/_client/updates.py b/telethon/_client/updates.py index 91e0b05e..23d9ee27 100644 --- a/telethon/_client/updates.py +++ b/telethon/_client/updates.py @@ -97,9 +97,10 @@ def add_event_handler( def remove_event_handler( self: 'TelegramClient', - callback, - event, - priority, + callback=None, + event=None, + *, + priority=None, ): if callback is None and event is None and priority is None: raise ValueError('must specify at least one of callback, event or priority')