txlyre 11 miesięcy temu
rodzic
commit
6ff38da7f0
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      commands.py

+ 6 - 4
commands.py

@@ -548,10 +548,12 @@ async def sylvy_handler(bot, event, command):
 
   await event.reply(
     text,
-    formatting_entities=MessageEntityCode(
-      offset=0,
-      length=len(text)
-    )
+    formatting_entities=[
+      MessageEntityCode(
+        offset=0,
+        length=len(text)
+      )
+    ]
   )
 
 COMMANDS = {