This commit is contained in:
Hafitz Setya 2021-06-13 10:26:52 +07:00 committed by GitHub
parent f81cc9110a
commit 6325169d92
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ class MegaDownloadHelper:
limit = MEGA_LIMIT
limit = limit.split(' ', maxsplit=1)
limitint = int(limit[0])
msg3 = f'Failed, Mega limit is {MEGA_LIMIT}.\n<b>Your File/Folder size is {get_readable_file_size(api.getSize(node))}.'
msg3 = f'Failed, Mega limit is {MEGA_LIMIT}.\nYour File/Folder size is {get_readable_file_size(api.getSize(node))}.'
if 'GB' in limit or 'gb' in limit:
if api.getSize(node) > limitint * 1024**3:
deleteMessage(listener.bot, msg)