txlyre 1 săptămână în urmă
părinte
comite
0fd12fc6f4
2 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 3 1
      commands.py
  2. 1 1
      openkriemy.py

+ 3 - 1
commands.py

@@ -532,7 +532,9 @@ async def run_handler(bot, event, command):
         return
 
     try:
-        await event.reply(await run(command.args_string))
+        _, _, result = await run(command.args_string)
+
+        await event.reply(result)
     except (ValueError, MessageEmptyError):
         await event.reply("<Telegram не смог декодировать текст сообщения>")
 

+ 1 - 1
openkriemy.py

@@ -54,7 +54,7 @@ async def on_inline_query(event):
         [
             event.builder.article(
                 "Результат.",
-                text=f"{lang}```\n{input_text.replace('`', '')}```{result}",
+                text=result,
             ),
         ]
     )