diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-11-07 00:50:31 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-11-07 00:50:31 +0300 |
commit | 5f4a14dac4a34c02ce180bec5b4a2e37bd4d1817 (patch) | |
tree | bef7832e88da0af833d873d405420fd14b475699 | |
parent | 6b1d3e8d7d2dde2cebdf7e24d4d4fb33b2bf2a8d (diff) |
home.bot: fix @handler
-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 |