mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
fix
This commit is contained in:
parent
92c8ca1635
commit
ba983d53e4
1 changed files with 26 additions and 26 deletions
|
|
@ -131,32 +131,32 @@ async def inline_menu(_, inline_query: InlineQuery):
|
|||
reply_markup=buttons,
|
||||
)
|
||||
)
|
||||
for types in parsetypes:
|
||||
if kueri.lower() in types.lower():
|
||||
link = parsetypes[types]["href"]
|
||||
description = parsetypes[types]["description"]
|
||||
buttons = InlineKeyboard()
|
||||
buttons.row(
|
||||
InlineButton("Open Docs", url=link),
|
||||
InlineButton("Search Again", switch_inline_query_current_chat=inline_query.query),
|
||||
)
|
||||
msg += f"<b>Description:</b> {description}\n\n"
|
||||
msg += f"<b>Variables:</b>\n"
|
||||
# msg += f"<code>{parsetypes[types]['fields']['name']}<code> ({fields[:-2]})\n{parsetypes[types]['fields']['description']}\n\n"
|
||||
datajson.append(
|
||||
InlineQueryResultArticle(
|
||||
title=types,
|
||||
input_message_content=InputTextMessageContent(
|
||||
message_text=msg,
|
||||
parse_mode=enums.ParseMode.HTML,
|
||||
disable_web_page_preview=False,
|
||||
),
|
||||
url=link,
|
||||
description=description,
|
||||
thumb_url="https://img.freepik.com/premium-vector/open-folder-folder-with-documents-document-protection-concept_183665-104.jpg",
|
||||
reply_markup=buttons,
|
||||
)
|
||||
)
|
||||
# for types in parsetypes:
|
||||
# if kueri.lower() in types.lower():
|
||||
# link = parsetypes[types]["href"]
|
||||
# description = parsetypes[types]["description"]
|
||||
# buttons = InlineKeyboard()
|
||||
# buttons.row(
|
||||
# InlineButton("Open Docs", url=link),
|
||||
# InlineButton("Search Again", switch_inline_query_current_chat=inline_query.query),
|
||||
# )
|
||||
# msg += f"<b>Description:</b> {description}\n\n"
|
||||
# msg += f"<b>Variables:</b>\n"
|
||||
# # msg += f"<code>{parsetypes[types]['fields']['name']}<code> ({fields[:-2]})\n{parsetypes[types]['fields']['description']}\n\n"
|
||||
# datajson.append(
|
||||
# InlineQueryResultArticle(
|
||||
# title=types,
|
||||
# input_message_content=InputTextMessageContent(
|
||||
# message_text=msg,
|
||||
# parse_mode=enums.ParseMode.HTML,
|
||||
# disable_web_page_preview=False,
|
||||
# ),
|
||||
# url=link,
|
||||
# description=description,
|
||||
# thumb_url="https://img.freepik.com/premium-vector/open-folder-folder-with-documents-document-protection-concept_183665-104.jpg",
|
||||
# reply_markup=buttons,
|
||||
# )
|
||||
# )
|
||||
LOGGER.info(datajson)
|
||||
await inline_query.answer(
|
||||
results=datajson,
|
||||
|
|
|
|||
Loading…
Reference in a new issue