Skip to content

Commit

Permalink
Update file_rename.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RknDeveloper authored Jul 10, 2024
1 parent 37a74ca commit 087c735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/file_rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def doc(bot, update):
try:
# file downloading started...
downloading = f"downloads/{user_id}/rkn{new_filename}"
path = await bot.download_media(message=file, file_name=downloading, progress=progress_for_pyrogram, progress_args=("ᴅᴏᴡɴʟᴏᴀᴅ sᴛᴀʀᴛᴇᴅ....", ms, time.time()))
path = await bot.download_media(message=file, file_name=downloading, progress=progress_for_pyrogram, progress_args=("ᴅᴏᴡɴʟᴏᴀᴅ sᴛᴀʀᴛᴇᴅ....", ms, time.time()))
except Exception as e:
return await ms.edit(e)

Expand Down

0 comments on commit 087c735

Please sign in to comment.