mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 20:34:52 +00:00
fix
This commit is contained in:
parent
5ec4943d1a
commit
6356180e37
1 changed files with 3 additions and 1 deletions
|
|
@ -106,13 +106,16 @@ async def inline_menu(_, inline_query: InlineQuery):
|
||||||
for method in parsemethod:
|
for method in parsemethod:
|
||||||
if kueri.lower() in method.lower():
|
if kueri.lower() in method.lower():
|
||||||
link = parsemethod[method]["href"]
|
link = parsemethod[method]["href"]
|
||||||
|
LOGGER.info(link)
|
||||||
description = parsemethod[method]["description"]
|
description = parsemethod[method]["description"]
|
||||||
|
LOGGER.info(description)
|
||||||
buttons = InlineKeyboard()
|
buttons = InlineKeyboard()
|
||||||
buttons.row(
|
buttons.row(
|
||||||
InlineButton("Open Docs", url=link),
|
InlineButton("Open Docs", url=link),
|
||||||
InlineButton("Search Again", switch_inline_query_current_chat=inline_query.query),
|
InlineButton("Search Again", switch_inline_query_current_chat=inline_query.query),
|
||||||
)
|
)
|
||||||
returns = "".join(f"{i}, " for i in parsemethod[method]["returns"])
|
returns = "".join(f"{i}, " for i in parsemethod[method]["returns"])
|
||||||
|
LOGGER.info(returns)
|
||||||
msg = f"<b>{method}</b> (<code>{returns[:-2]}</code>)\n"
|
msg = f"<b>{method}</b> (<code>{returns[:-2]}</code>)\n"
|
||||||
msg += f"<b>Description:</b> {description[0]}\n\n"
|
msg += f"<b>Description:</b> {description[0]}\n\n"
|
||||||
msg += f"<b>Variables:</b>\n"
|
msg += f"<b>Variables:</b>\n"
|
||||||
|
|
@ -157,7 +160,6 @@ async def inline_menu(_, inline_query: InlineQuery):
|
||||||
# reply_markup=buttons,
|
# reply_markup=buttons,
|
||||||
# )
|
# )
|
||||||
# )
|
# )
|
||||||
LOGGER.info(datajson)
|
|
||||||
await inline_query.answer(
|
await inline_query.answer(
|
||||||
results=datajson,
|
results=datajson,
|
||||||
is_gallery=False,
|
is_gallery=False,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue