Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion helper_funcs/display_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions plugins/rename_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
12 changes: 6 additions & 6 deletions translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<b>👉 Create own Clone Bot.. </b> /help for Details"
UPGRADE_TEXT = "<b>👉 JOIN OUR CHANNEL : @ALL_MOVIES_LIABRARY.. </b> /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 <a href='https://telegram.dog/ThankTelegram'>@SpEcHlDe</a>"
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 <a href='https://telegram.dog/ThankTelegram'>@NGYNY</a>"
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."
Expand All @@ -27,12 +27,12 @@ class Translation(object):
1. Send me any Telegram File.
2. Reply to that message to /rename new name.extension.

<b>👉 Create own Clone Bot :</b> 👉 <a href="https://youtu.be/yYHrSnuYXpA">Diploy</a>
<b>👉 JOIN OUR CHANNEL:</b> 👉 <a href="https://t.me/ALL_MOVIES_LIABRARY">Channel</a>

--------

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.
Expand All @@ -42,5 +42,5 @@ class Translation(object):
The given file name has {num} characters.

<b>Essays Not allowed in Telegram file name!</b>
©️ <code>@ReNameBot</code>
©️ <code>@RENAME_BOT</code>
Please short your file name and try again!"""