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 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 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( 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!"""