This commit is contained in:
yasirarism 2023-06-06 15:31:20 +00:00 committed by GitHub
parent cbe9deffd2
commit 170e94b196
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,9 +41,9 @@ async def genss(self: Client, ctx: Message, strings):
return
replied = ctx.reply_to_message
if len(ctx.command) == 2 and is_url(ctx.command[1]):
pesan = await ctx.reply_msg(strings("wait_msg"), quote=True)
pesan = await ctx.reply_msg(strings("wait_dl"), quote=True)
start_t = datetime.now()
the_url_parts = " ".join(message.command[1:])
the_url_parts = " ".join(ctx.command[1:])
url = the_url_parts.strip()
file_name = os.path.basename(url)
download_file_path = os.path.join("downloads/", file_name)