summaryrefslogtreecommitdiff
path: root/src/home/telegram/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/telegram/bot.py')
-rw-r--r--src/home/telegram/bot.py4
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