Update vt.py

This commit is contained in:
Abhi
2023-12-17 23:14:11 +05:30
committed by GitHub
parent 706f055815
commit db2056cf7d

View File

@@ -21,13 +21,13 @@ from utils.config import vt_key as vak
async def scan_my_file(client, message):
ms_ = await edit_or_reply(message, "`Please Wait! Scanning This File`")
if not message.reply_to_message:
return await ms_.edit("`Please Reply To File To Scan For Viruses`")
return await ms_.edit("`Please Reply To File To Scan For Viruses`", parse_mode=enums.ParseMode.MARKDOWN)
if not message.reply_to_message.document:
return await ms_.edit("`Please Reply To File To Scan For Viruses`")
return await ms_.edit("`Please Reply To File To Scan For Viruses`", parse_mode=enums.ParseMode.MARKDOWN)
if not vak:
return await ms_.edit("`You Need To Set VIRUSTOTAL_API_KEY For Functing Of This Plugin.`")
return await ms_.edit("`You Need To Set VIRUSTOTAL_API_KEY For Functing Of This Plugin.`", parse_mode=enums.ParseMode.MARKDOWN)
if int(message.reply_to_message.document.file_size) > 25000000:
return await ms_.edit("`File Too Large , Limit is 25 Mb`")
return await ms_.edit("`File Too Large , Limit is 25 Mb`", parse_mode=enums.ParseMode.MARKDOWN)
c_time = time.time()
downloaded_file_name = await message.reply_to_message.download(
progress=progress,