mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
print debug
This commit is contained in:
parent
6b3383418e
commit
bd239f6b2f
@ -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:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user