fix parse mode for too large files

This commit is contained in:
bakatrouble 2023-05-21 00:09:13 +03:00
parent 0f4d779e0c
commit 728373cdd5

View File

@ -73,7 +73,8 @@ async def check_updates():
parse_mode=ParseMode.HTML)
else:
await bot.send_message(int(os.environ['SEND_CHAT']),
f'File is too large: {post.file.url}\n\n' + caption)
f'File is too large: {post.file.url}\n\n' + caption,
parse_mode=ParseMode.HTML)
elif post.file.ext == 'gif':
await bot.send_animation(int(os.environ['SEND_CHAT']),
file,