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