Disable link preview for translate

This commit is contained in:
blank X 2020-12-03 20:28:38 +07:00
parent 5727eaea20
commit 07b9f6da16
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ async def translate(client, message):
text = 'They\'re the same'
else:
text = f'Translated from {result.src} to {result.dest}:\n{result.text[:4000]}'
await message.reply_text(text, parse_mode=None)
await message.reply_text(text, parse_mode=None, disable_web_page_preview=True)
help_dict['translate'] = ('Translate',
'''{prefix}translate <i>(as reply to text)</i> <i>[src]-[dest]</i> - Translates text and stuff