From da38961ce2cfe6fe2c32e5e5a4572c9806341ad8 Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 17 Sep 2019 00:20:50 +0200 Subject: [PATCH] Fix inline_edt conditional error --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 265c6ee..f540121 100644 --- a/bot.py +++ b/bot.py @@ -70,8 +70,8 @@ async def notif(): @dp.inline_handler() -async def inline_echo(inline_query: InlineQuery): - text = inline_query.query.lower() if inline_query.query.lower() not in TIMES else "invalid" +async def inline_edt(inline_query: InlineQuery): + text = inline_query.query.lower() if inline_query.query.lower() in TIMES else "invalid" res = calendar(text, inline_query.from_user.id) input_content = InputTextMessageContent(res, parse_mode=ParseMode.MARKDOWN) result_id: str = hashlib.md5(res.encode()).hexdigest()