txlyre před 1 rokem
rodič
revize
28ee8747a9
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      commands.py

+ 4 - 1
commands.py

@@ -454,7 +454,10 @@ async def run_handler(bot, event, command):
   if not text:
     text = '<пусто>'
 
-  await event.reply(f'```\n{text}```')
+  try:
+    await event.reply(f'```\n{text}```')
+  except ValueError:
+    await event.reply(text, parse_mode=None)
 
 async def sylvy_handler(bot, event, command):
   if command.argc < 1: