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)
       )
     ]
   )