mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +01:00
use non-deprecated methods
This commit is contained in:
parent
53de38f6c9
commit
4d770843cc
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue