From f0bd39216b66cf6a25dc293670f55e1d9bde14ce Mon Sep 17 00:00:00 2001 From: Erich Von Daniken <65355700+ErichDanikenOfficial@users.noreply.github.com> Date: Sat, 30 May 2020 12:26:53 +0530 Subject: [PATCH 1/4] Removed unwanted condition --- plugins/rename_file.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/rename_file.py b/plugins/rename_file.py index 16267d62e..c70d61bbc 100644 --- a/plugins/rename_file.py +++ b/plugins/rename_file.py @@ -80,13 +80,6 @@ async def rename_doc(bot, update): ) except: pass - if "IndianMovie" in the_real_download_location: - await bot.edit_message_text( - text=Translation.RENAME_403_ERR, - chat_id=update.chat.id, - message_id=a.message_id - ) - return new_file_name = download_location + file_name os.rename(the_real_download_location, new_file_name) await bot.edit_message_text( From 8553cd3b67da56a514b9e4eae80c6c68b7ef510c Mon Sep 17 00:00:00 2001 From: Erich Von Daniken <65355700+ErichDanikenOfficial@users.noreply.github.com> Date: Sat, 30 May 2020 12:37:46 +0530 Subject: [PATCH 2/4] Update progress bar time limit --- helper_funcs/display_progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper_funcs/display_progress.py b/helper_funcs/display_progress.py index e2f1b32fb..65fb1d0b6 100644 --- a/helper_funcs/display_progress.py +++ b/helper_funcs/display_progress.py @@ -31,7 +31,7 @@ async def progress_for_pyrogram( ): now = time.time() diff = now - start - if round(diff % 10.00) == 0 or current == total: + if round(diff % 5.00) == 0 or current == total: # if round(current / total * 100, 0) % 5 == 0: percentage = current * 100 / total speed = current / diff From fd68e09faf4ff3caf05641355c2edf8eb3feeb6b Mon Sep 17 00:00:00 2001 From: SHER321 <66766275+SHER321@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:22:05 +0530 Subject: [PATCH 3/4] Update translation.py --- translation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/translation.py b/translation.py index 5267c9968..360daa864 100644 --- a/translation.py +++ b/translation.py @@ -14,7 +14,7 @@ class Translation(object): AFTER_SUCCESSFUL_UPLOAD_MSG = "**Thank you for Using MeπŸ€“.**" AFTER_SUCCESSFUL_UPLOAD_MSG_WITH_TS = "Downloaded in {} seconds.\nUploaded in {} seconds." NOT_AUTH_USER_TEXT = "Please /upgrade your subscription." - NOT_AUTH_USER_TEXT_FILE_SIZE = "Detected File Size: {}. Free Users can only upload: {}\nPlease /upgrade your subscription.\nIf you think this is a bug, please contact @SpEcHlDe" + NOT_AUTH_USER_TEXT_FILE_SIZE = "Detected File Size: {}. Free Users can only upload: {}\nPlease /upgrade your subscription.\nIf you think this is a bug, please contact @NGYNY" SAVED_CUSTOM_THUMB_NAIL = "Custom File thumbnail saved. This image will be used in the File." DEL_ETED_CUSTOM_THUMB_NAIL = "βœ… Custom thumbnail cleared succesfully." FF_MPEG_DEL_ETED_CUSTOM_MEDIA = "βœ… Media cleared succesfully." @@ -27,12 +27,12 @@ class Translation(object): 1. Send me any Telegram File. 2. Reply to that message to /rename new name.extension. -πŸ‘‰ Create own Clone Bot : πŸ‘‰ Diploy +πŸ‘‰ JOIN OUR CHANNEL : πŸ‘‰ Channel -------- -Support Group : @InFoTelGroup -Β© @SpEcHlDe @TGBotsZ""" +Support Group : @MOVIERG_NY +Β© @ALL_MOVIES_LIABRARY""" REPLY_TO_DOC_FOR_RENAME_FILE = "Reply to a Telegram media to `/rename New Name.extension` with custom thumbnail support.." ABUSIVE_USERS = "You are not allowed to use this bot. If you think this is a mistake, please check /me to remove this restriction." FREE_USER_LIMIT_Q_SZE = """Cannot Process. @@ -42,5 +42,5 @@ class Translation(object): The given file name has {num} characters. Essays Not allowed in Telegram file name! -©️ @ReNameBot +©️ @NGY_RENAME_BOT Please short your file name and try again!""" From 4edac533fd2822b932a3c59b83b0ddeeca2f176c Mon Sep 17 00:00:00 2001 From: SHER321 <66766275+SHER321@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:23:09 +0530 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index abade1b1d..592a923c5 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ An Open Source Rename Telegram RoBot ### You can also tap the Deploy To Heroku button below to deploy straight to Heroku! -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/erichdanikeninfo/TG-Rename-Bot) +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/SHER321/TG-Rename-Bot) **upgrade** your subscription for [@AnyDLBot](https://telegram.dog/AnyDLBot) without having to run anything on your own