-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchat.py
36 lines (23 loc) · 1.13 KB
/
chat.py
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
class Chat:
START_TEXT = """This is a Telegram Bot to Mux subtitle into a video
<b>Send me a Telegram file to begin</b>
/help for more details..
Owner :@LhRfi
Channel :@irbotsupdate
"""
HELP_USER = "??"
HELP_TEXT ="""<b>Welcome to the Help Menu</b>
1.) Send a Video file or url.
2.) Send a subtitle file (ass or srt)
3.) Choose you desired type of muxing!
To give custom name to file send it with url seperated with |
<i>url|custom_name.mp4</i>
<b>Note : </b><i>Please note that only english type fonts are supported in hardmux other scripts will be shown as empty blocks on the video!</i>"""
DOWNLOAD_SUCCESS = """File downloaded successfully!
Time taken : {} seconds."""
FILE_SIZE_ERROR = "ERROR : Cannot Extract File Size from URL!"
MAX_FILE_SIZE = "File size is greater than 2Gb. Which is the limit imposed by telegram!"
LONG_CUS_FILENAME = """Filename you provided is greater than 60 characters.
Please provide a shorter name."""
UNSUPPORTED_FORMAT = "ERROR : File format {} Not supported!"
CHOOSE_CMD = "Subtitle file downloaded successfully.\nChoose your desired muxing!\n[ /softremove , /softmux ]"