summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-12-30 18:09:36 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-12-30 18:09:36 +0300
commitebdedacf2f8daa75e4473f1f87129cc2a3a56893 (patch)
treee5119ecfa547b5fdaed132c80f99fa7f9aaac723 /src
parent70f74ece3aaa29225b696cc63dbd4c11db365c06 (diff)
fix bot framework
Diffstat (limited to 'src')
-rw-r--r--src/home/telegram/bot.py9
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)