txlyre 1 settimana fa
parent
commit
7463e2ef1e
1 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  1. 1 4
      openkriemy.py

+ 1 - 4
openkriemy.py

@@ -50,14 +50,11 @@ async def on_inline_query(event):
 
         return
 
-    if result.startswith("```\n"):
-        result = result[4:]
-
     await event.answer(
         [
             event.builder.article(
                 "Результат.",
-                text=f"```{lang}\n{input_text.replace('`', '')}\n{result}```",
+                text=f"```\n{input_text}```\n{result}",
             ),
         ]
     )