print debug

This commit is contained in:
mihalin 2022-02-11 03:59:58 +03:00
parent 6b3383418e
commit bd239f6b2f

View File

@ -19,8 +19,9 @@ async def inline_handler(inline_query: InlineQuery, bot: Bot):
# return await inline_query.answer([], cache_time=1) # forbidden # return await inline_query.answer([], cache_time=1) # forbidden
all_phrases = await get_phrases(bot.id) all_phrases = await get_phrases(bot.id)
print(f"All phrases {all_phrases}")
phrases = [phrase for phrase in all_phrases if inline_query.query.lower() in phrase.lower()] phrases = [phrase for phrase in all_phrases if inline_query.query.lower() in phrase.lower()]
print(f"phrases {phrases}")
items = [] items = []
for phrase in phrases: for phrase in phrases: