forked from apunadminhai/URL-Uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
translation.py
77 lines (69 loc) · 3.59 KB
/
translation.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
class Translation(object):
START_TEXT = """
Hello {} , I'am a url to telegram file or media uploader bot with permanent thumbnail support.
Made by @FayasNoushad
"""
HELP_TEXT = """
<b><u>Link to Media or File</u></b>
➠ Send a link for upload to telegram file or media.
<b><u>Set Thumbnail</u></b>
➠ Send a photo to make it as permanent thumbnail.
<b><u>Deleting Thumbnail</u></b>
➠ Send /delthumb to deleting thumbnail.
<b><u>Show Thumbnail</u></b>
➠ Send /showthumb to view custom thumbnail.
Made by @FayasNoushad
"""
ABOUT_TEXT = """
- **Bot :** `URL Uploader`
- **Creator :** [Fayas](https://telegram.me/TheFayas)
- **Channel :** [Fayas Noushad](https://telegram.me/FayasNoushad)
- **Credits :** `Everyone in this journey`
- **Source :** [Click here](https://github.com/FayasNoushad/URL-Uploader)
- **Language :** [Python3](https://python.org)
- **Library :** [Pyrogram v1.2.0](https://pyrogram.org)
- **Server :** [Heroku](https://heroku.com)
"""
START_BUTTONS = InlineKeyboardMarkup(
[[
InlineKeyboardButton('Channel', url='https://telegram.me/FayasNoushad'),
InlineKeyboardButton('Feedback', url='https://telegram.me/TheFayas')
],[
InlineKeyboardButton('Help', callback_data='help'),
InlineKeyboardButton('About', callback_data='about'),
InlineKeyboardButton('Close', callback_data='close')
]]
)
HELP_BUTTONS = InlineKeyboardMarkup(
[[
InlineKeyboardButton('Home', callback_data='home'),
InlineKeyboardButton('About', callback_data='about'),
InlineKeyboardButton('Close', callback_data='close')
]]
)
ABOUT_BUTTONS = InlineKeyboardMarkup(
[[
InlineKeyboardButton('Home', callback_data='home'),
InlineKeyboardButton('Help', callback_data='help'),
InlineKeyboardButton('Close', callback_data='close')
]]
)
FORMAT_SELECTION = """<b>Select the desired format:</b> <a href='{}'>file size might be approximate</a>
Send your custum thumbnail if required.
You can use /delthumb to delete the auto-generated thumbnail."""
CHECKING_LINK = "<code>Analysing Your Link</code>⏳"
BANNED_USER_TEXT = "<code>You are Banned!</code>"
SET_CUSTOM_USERNAME_PASSWORD = """If you want to download premium videos, provide in the following format:
URL | newfilename | username | password"""
DOWNLOAD_START = "<code>Downloading To My server Please Wait...</code>"
UPLOAD_START = "<code>Uploading into Telegram...</code>"
AFTER_SUCCESSFUL_UPLOAD_MSG_WITH_TS = "Downloaded in {} seconds. \n\nUploaded in {} seconds."
RCHD_TG_API_LIMIT = "Downloaded in {} seconds.\nDetected File Size: {}\nSorry. But, I cannot upload files greater than 1.95GB due to Telegram API limitations."
CUSTOM_CAPTION_UL_FILE = "<b>Join :-</b> @FayasNoushad"
SLOW_URL_DECED = "Gosh that seems to be a very slow URL. Since you were screwing my home, I am in no mood to download this file. Meanwhile, why don't you try this:==> https://shrtz.me/PtsVnf6 and get me a fast URL so that I can upload to Telegram, without me slowing down for other users."
NO_VOID_FORMAT_FOUND = "<code>{}</code>"
REPORT_SITE_TEXT = "<code>Sorry not uploading in this site here because this site is reporting site.</code>"
SOMETHING_WRONG = "<code>Something Wrong. Try again.</code>"
FORCE_SUBSCRIBE_TEXT = "<code>Sorry Dear You Must Join My Updates Channel for using me 😌😉....</code>"
FREE_USER_LIMIT_Q_SZE = "Sorry Friend, Free users can only 1 request per {} minutes. Please try again after {} seconds later."