add a method to list update handlers

This commit is contained in:
Ader 2017-03-28 00:30:40 +01:00 committed by GitHub
parent af4514b15e
commit 95cf2ac4c1

View File

@ -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