Disable link preview for translate
This commit is contained in:
parent
5727eaea20
commit
07b9f6da16
|
@ -48,7 +48,7 @@ async def translate(client, message):
|
||||||
text = 'They\'re the same'
|
text = 'They\'re the same'
|
||||||
else:
|
else:
|
||||||
text = f'Translated from {result.src} to {result.dest}:\n{result.text[:4000]}'
|
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',
|
help_dict['translate'] = ('Translate',
|
||||||
'''{prefix}translate <i>(as reply to text)</i> <i>[src]-[dest]</i> - Translates text and stuff
|
'''{prefix}translate <i>(as reply to text)</i> <i>[src]-[dest]</i> - Translates text and stuff
|
||||||
|
|
Loading…
Reference in New Issue