txlyre hace 11 meses
padre
commit
03bffee6bb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
       )
     ]
   )