diff options
-rw-r--r-- | src/home/telegram/bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/home/telegram/bot.py b/src/home/telegram/bot.py index 004f795..1a58412 100644 --- a/src/home/telegram/bot.py +++ b/src/home/telegram/bot.py @@ -109,9 +109,9 @@ def handler(**kwargs): if 'message' in kwargs: _updater.dispatcher.add_handler(MessageHandler(text_filter(lang.all(kwargs['message'])), _handler), group=0) - elif 'command' in kwargs: + if 'command' in kwargs: _updater.dispatcher.add_handler(CommandHandler(kwargs['command'], _handler), group=0) - elif 'callback' in kwargs: + if 'callback' in kwargs: _updater.dispatcher.add_handler(CallbackQueryHandler(_handler, pattern=kwargs['callback']), group=0) return _handler return inner |