Increase length limits when sending html

This commit is contained in:
udf 2019-08-03 17:46:28 +02:00
parent 59245a4e6d
commit 3178eb5fba
Signed by: kate
GPG Key ID: F17AECB58C3A3096
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ async def _(event):
await event.edit(yaml_text, parse_mode=parse_pre)
except MessageTooLongError:
await event.delete()
yaml_text = yaml_format(
msg,
max_str_len=9999,
max_byte_len=9999
)
await borg.send_file(
await event.get_input_chat(),
f'<pre>{yaml_text}</pre>'.encode('utf-8'),