txlyre 11 月之前
父节点
当前提交
6ff38da7f0
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      commands.py

+ 6 - 4
commands.py

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