mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-29 11:42:42 +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 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:
|
||||||
|
|
Loading…
Reference in a new issue