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

+ 1 - 1
commands.py

@@ -552,7 +552,7 @@ async def sylvy_handler(bot, event, command):
     formatting_entities=[
       MessageEntityCode(
         offset=0,
-        length=len(text.encode('utf-16')) // 2
+        length=len(text)
       )
     ]
   )