use non-deprecated methods

This commit is contained in:
Jannes Höke 2016-05-16 15:02:51 +02:00
parent 53de38f6c9
commit 4d770843cc

View file

@ -176,8 +176,8 @@ class Dispatcher(object):
for group in self.groups: for group in self.groups:
for handler in self.handlers[group]: for handler in self.handlers[group]:
try: try:
if handler.checkUpdate(update): if handler.check_update(update):
handler.handleUpdate(update, self) handler.handle_update(update, self)
break break
# Dispatch any errors # Dispatch any errors
except TelegramError as te: except TelegramError as te: