This commit is contained in:
yasir 2023-02-07 12:46:59 +07:00
parent d7ff7209cf
commit 1729e65c7d

View file

@ -116,7 +116,8 @@ async def inline_menu(_, inline_query: InlineQuery):
msg = f"<b>{method}</b> (<code>{returns[:-2]}</code>)\n"
msg += f"{description}\n\n"
msg += f"<b>Variables:</b>\n"
# msg += f"<code>{method}<code> ({fields})\n<b>Required:</b> {parsemethod[method]['fields']['required']}\n{parsemethod[method]['fields']['description']}\n\n"
for i in parsemethod[method]["fields"]:
msg += f"<code>{parsemethod[method]['fields']['name']}<code> ({parsemethod[method]['fields']['types']})\n<b>Required:</b> {parsemethod[method]['fields']['required']}\n{parsemethod[method]['fields']['description']}\n\n"
datajson.append(
InlineQueryResultArticle(
title=method,