Skip to content

Commit

Permalink
Update upload_to_tg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamajay52 authored Jun 26, 2020
1 parent 480c910 commit 47a61e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tobrot/helper_funcs/upload_to_tg.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async def upload_to_gdrive(file_upload, message):
indexurl = f"{INDEX_LINK}/{file_upload}"
tam_link = requote_uri(indexurl)
#s_tr = '-'*40
await asyncio.sleep(10)
await asyncio.sleep(EDIT_SLEEP_TIME_OUT)
await message.edit_text(f"""🤖: {file_upload} has been Uploaded successfully to your cloud 🤒\n\n☁️ Cloud URL: <a href="{gau_link}">FileLink</a>\nℹ️ Direct URL: <a href="{tam_link}">IndexLink</a>""")
os.remove(file_upload)
else:
Expand All @@ -178,7 +178,7 @@ async def upload_to_gdrive(file_upload, message):
indexurl = f"{INDEX_LINK}/{file_upload}/"
tam_link = requote_uri(indexurl)
#s_tr = '-'*40
await asyncio.sleep(10)
await asyncio.sleep(EDIT_SLEEP_TIME_OUT)
await message.edit_text(f"""🤖: Folder has been Uploaded successfully to {tt} in your cloud 🤒\n\n☁️ Cloud URL: <a href="{gau_link}">FolderLink</a>\nℹ️ Index Url:. <a href="{tam_link}">IndexLink</a>""")
shutil.rmtree(file_upload)

Expand Down

0 comments on commit 47a61e6

Please sign in to comment.