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 handler in self.handlers[group]:
try:
if handler.checkUpdate(update):
handler.handleUpdate(update, self)
if handler.check_update(update):
handler.handle_update(update, self)
break
# Dispatch any errors
except TelegramError as te: