diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-12-30 18:09:36 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-12-30 18:09:36 +0300 |
commit | ebdedacf2f8daa75e4473f1f87129cc2a3a56893 (patch) | |
tree | e5119ecfa547b5fdaed132c80f99fa7f9aaac723 | |
parent | 70f74ece3aaa29225b696cc63dbd4c11db365c06 (diff) |
fix bot framework
-rw-r--r-- | src/home/telegram/bot.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/home/telegram/bot.py b/src/home/telegram/bot.py index 9e60b70..3bdb01a 100644 --- a/src/home/telegram/bot.py +++ b/src/home/telegram/bot.py @@ -137,11 +137,10 @@ def handler(**kwargs): if messages: texts = list(itertools.chain.from_iterable([lang.all(m) for m in messages])) - - _updater.dispatcher.add_handler( - MessageHandler(text_filter(*texts), _handler), - group=0 - ) + _updater.dispatcher.add_handler( + MessageHandler(text_filter(*texts), _handler), + group=0 + ) if 'command' in kwargs: _updater.dispatcher.add_handler(CommandHandler(kwargs['command'], _handler), group=0) |