Fix inline_edt conditional error
This commit is contained in:
parent
857619fac3
commit
da38961ce2
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -70,8 +70,8 @@ async def notif():
|
||||||
|
|
||||||
|
|
||||||
@dp.inline_handler()
|
@dp.inline_handler()
|
||||||
async def inline_echo(inline_query: InlineQuery):
|
async def inline_edt(inline_query: InlineQuery):
|
||||||
text = inline_query.query.lower() if inline_query.query.lower() not in TIMES else "invalid"
|
text = inline_query.query.lower() if inline_query.query.lower() in TIMES else "invalid"
|
||||||
res = calendar(text, inline_query.from_user.id)
|
res = calendar(text, inline_query.from_user.id)
|
||||||
input_content = InputTextMessageContent(res, parse_mode=ParseMode.MARKDOWN)
|
input_content = InputTextMessageContent(res, parse_mode=ParseMode.MARKDOWN)
|
||||||
result_id: str = hashlib.md5(res.encode()).hexdigest()
|
result_id: str = hashlib.md5(res.encode()).hexdigest()
|
||||||
|
|
Reference in a new issue