|
@@ -10,6 +10,8 @@ from ujson import dumps
|
|
|
from tortoise.exceptions import IntegrityError
|
|
|
from telethon.errors import MessageEmptyError
|
|
|
from telethon.utils import get_display_name, get_peer_id
|
|
|
+from telethon.tl.types import MessageEntityCode
|
|
|
+
|
|
|
from aiofiles.os import (
|
|
|
remove,
|
|
|
path
|
|
@@ -544,9 +546,13 @@ async def sylvy_handler(bot, event, command):
|
|
|
|
|
|
text += result['output']
|
|
|
|
|
|
- text = text.replace('`', '')
|
|
|
-
|
|
|
- await event.reply(f'```\n{text}```')
|
|
|
+ await event.reply(
|
|
|
+ text,
|
|
|
+ formatting_entities=MessageEntityCode(
|
|
|
+ offset=0,
|
|
|
+ length=len(text)
|
|
|
+ )
|
|
|
+ )
|
|
|
|
|
|
COMMANDS = {
|
|
|
'newadmin': Handler(newadmin_handler, is_restricted=True),
|