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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ 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
**upgrade** your subscription for [@AnyDLBot](https://telegram.dog/MOVIERG_NY) without having to run anything on your own

#### The Hard Way

Expand All @@ -31,9 +31,9 @@ python bot.py
```
## Our Telegram Channel and Group

* [TG Bots Updates](https://telegram.dog/TGBotsz)
* [InFoTel Paid Apps](https://telegram.dog/InFoTel14)
* [InFoTel Group](https://telegram.dog/InFoTelGroup)
* [TG Bots Updates](https://telegram.dog/ALL_MOVIES_LIABRARY)
* [InFoTel Paid Apps](https://telegram.dog/ALL_MOVIES_LIABRARY)
* [InFoTel Group](https://telegram.dog/ALL_MOVIES_LIABRARY)

## Credits, and Thanks to

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
14 changes: 7 additions & 7 deletions translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Translation(object):
START_TEXT = """Hello,
This is a Telegram Rename Bot!

<b>Please send me any Telegram file and reply to that file to /rename New Name.mkv</b>
<b>Please send me any Telegram file and reply to that file to /rename New Name.mkv @ALL_MOVIES_LIABRARY</b>

/help for more details.."""
RENAME_403_ERR = "Sorry. You are not permitted to rename this file."
Expand All @@ -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 <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://t.me/NGYNY'>@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,20 +27,20 @@ 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="http://t.me/ALL_MOVIES_LIABRARY">Channel</a>

--------

Support Group : @InFoTelGroup
© @SpEcHlDe @TGBotsZ"""
Support Group : @MOVIERG_NGY
© @MOVIERG_NGY @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.
Free users only 1 request per 30 minutes.
Free users only used 30 seconds per use.
/upgrade or Try 1800 seconds later."""
IFLONG_FILE_NAME = """File Name limit allowed by Telegram is {alimit} characters.
The given file name has {num} characters.

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