From ebdedacf2f8daa75e4473f1f87129cc2a3a56893 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 30 Dec 2022 18:09:36 +0300 Subject: fix bot framework --- src/home/telegram/bot.py | 9 ++++----- 1 file 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) -- cgit v1.2.3