Add method to list update handlers (#40)

This commit is contained in:
Ader 2017-03-28 17:46:07 +01:00 committed by Lonami
parent af4514b15e
commit 4734d4a7f9

View File

@ -721,4 +721,7 @@ class TelegramClient:
def remove_update_handler(self, handler): def remove_update_handler(self, handler):
self.sender.remove_update_handler(handler) self.sender.remove_update_handler(handler)
def list_update_handlers(self):
return [ handler.__name__ for handler in self.sender.on_update_handlers ]
# endregion # endregion