forked from ErichDanikenOfficial/TG-Rename-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtranslation.py
More file actions
43 lines (36 loc) · 2.5 KB
/
Copy pathtranslation.py
File metadata and controls
43 lines (36 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Translation(object):
START_TEXT = """Hello,
This is <a href="https://t.me/TGRenamer_Bot">TG Renamer Bot</a>!
<b>Please send me any Telegram file and reply to that file to /rename New Name.mkv</b>
You can send /help for more details..."""
RENAME_403_ERR = "Sorry. You are not permitted to rename this file."
ABS_TEXT = " Please don't be selfish."
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 = "You Are Non Auth User, Please Contact @ProgrammingTree If You Want To Use This Bot"
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/ProgrammingTree'>@ProgrammingTree</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."
SAVED_RECVD_DOC_FILE = "Document Downloaded Successfully."
CUSTOM_CAPTION_UL_FILE = " "
NO_CUSTOM_THUMB_NAIL_FOUND = "No Custom ThumbNail found."
USER_ADDED_TO_DB = "User <a href='tg://user?id={}'>{}</a> added to {} till {}."
HELP_USER = """Hello, I Am TG Renamer Bot.
1. Send me any Telegram File.
2. Reply to that message to /rename New Name.extension.
That is, It is Very easy to use TG Renamer Bot!
<b>♻️ Bot Developed by :</b> @ProgrammingTree
<b>📛 To Get Latest Updates About Bot :</b> @ProgrammingTreeCh"""
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.
Contact @ProgrammingTree to get Authed 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>
Please short your file name and try again!"""