mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Add method to list update handlers (#40)
This commit is contained in:
parent
af4514b15e
commit
4734d4a7f9
|
@ -721,4 +721,7 @@ class TelegramClient:
|
|||
def remove_update_handler(self, handler):
|
||||
self.sender.remove_update_handler(handler)
|
||||
|
||||
def list_update_handlers(self):
|
||||
return [ handler.__name__ for handler in self.sender.on_update_handlers ]
|
||||
|
||||
# endregion
|
||||
|
|
Loading…
Reference in New Issue
Block a user