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/5] 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/5] 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 ae53da7878fdc08ef9a7ad80164f4c012918014a Mon Sep 17 00:00:00 2001 From: SHER321 <66766275+SHER321@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:10:59 +0530 Subject: [PATCH 3/5] Update translation.py --- translation.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/translation.py b/translation.py index 5267c9968..c78379cb0 100644 --- a/translation.py +++ b/translation.py @@ -7,14 +7,14 @@ class Translation(object): /help for more details..""" RENAME_403_ERR = "Sorry. You are not permitted to rename this file." ABS_TEXT = " Please don't be selfish." - UPGRADE_TEXT = "πŸ‘‰ Create own Clone Bot.. /help for Details" + UPGRADE_TEXT = "πŸ‘‰ JOIN OUR CHANNEL : @ALL_MOVIES_LIABRARY.. /help for Details" DOWNLOAD_START = "trying to download" UPLOAD_START = "trying to upload" RCHD_TG_API_LIMIT = "Downloaded in {} seconds.\nDetected File Size: {}\nSorry. But, I cannot upload files greater than 1.5GB due to Telegram API limitations." 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 +©️ @RENAMERNGY_BOY Please short your file name and try again!""" From 8a8df0822ddfde46f86d44e927714a359eb7d4b7 Mon Sep 17 00:00:00 2001 From: SHER321 <66766275+SHER321@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:12:04 +0530 Subject: [PATCH 4/5] 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 From f5b808a2834354fd92261457c86f6d8106cc686f Mon Sep 17 00:00:00 2001 From: SHER321 <66766275+SHER321@users.noreply.github.com> Date: Fri, 12 Jun 2020 09:47:58 +0530 Subject: [PATCH 5/5] Update translation.py --- translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translation.py b/translation.py index c78379cb0..d4fb77075 100644 --- a/translation.py +++ b/translation.py @@ -42,5 +42,5 @@ class Translation(object): The given file name has {num} characters. Essays Not allowed in Telegram file name! -©️ @RENAMERNGY_BOY +©️ @RENAME_BOT Please short your file name and try again!"""