forked from GreyMatters-Tech/TG-URL-Shortener-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
translation.py
209 lines (132 loc) · 5.27 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
START_MESSAGE = '''**Hello, {}
I Am Greylinks Official Link Converter. I Can Convert Links Directly From Your GreyMatterslinks.in Account,
1. Go To 👉 https://GreyMatterslinks.in/member/tools/api
2. Than Copy API Key
3. Than Type /set_api than give a single space and than paste your API Key (see example to understand more...)
/set_api(space)API Key
(See Example.👇)
Example:** `/set_api 20eb8456008878c0349fc79d40fb4d1634cccf12`
**💁♀️ Hit 👉 /help To Get Help.
➕ Hit 👉 /footer To Get Help About Adding your Custom Footer to bot.
➕ Hit 👉 /header To Get Help About Adding your Custom Footer to bot.**
'''
HELP_MESSAGE = '''
**Hey! My name is {firstname}. I am a Greylinks Pro Shortener Bot.**
Features
- [Hyperlink](https://t.me/{username})
- Buttons convert support
- Header and Footer Text support
- Replace Username
- Banner Image
Helpful commands:
- /start: Starts me! You've probably already used this.
- /help: Sends this message; I'll tell you more about myself!
If You Have Any Problem Then contact us at - contact@GreyMattersTech.com
Available commands:
- /set_api
- /header
- /footer
- /username
- /banner_image
- /me
Use the commands to know more about the same
Below are some features I provide'''
ABOUT_TEXT = """
**My Details:**
`🤖 Name:` ** {} **
`📝 Language:` [Python 3](https://www.python.org/)
`🧰 Framework:` [Pyrogram](https://github.com/pyrogram/pyrogram)
`👨💻 Developer:` [GreyMatter's](https://t.me/GreyMattersTech)
`📢 Support:` [SUPPORT](mailto:contact@GreyMattersTech.com)
"""
CUSTOM_ALIAS_MESSAGE = """For Custom Alias, `[link] | [custom_alias]`, Send in this format
This feature works only in private mode only
Ex: https://t.me/example | Example"""
ADMINS_MESSAGE = """
List of Admins who has access to this Bot
{admin_list}
"""
HELP_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('Custom Alias', callback_data=f'alias_conf'),
#InlineKeyboardButton('Admins', callback_data=f'admins_list'), Not Required Because Users Can See Admin Of Bot
],
[
InlineKeyboardButton('Home', callback_data='start_command')
],
])
ABOUT_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('Home', callback_data=f'start_command'),
InlineKeyboardButton('Help', callback_data=f'help_command')
],
[
InlineKeyboardButton('Close', callback_data='delete')
]
])
START_MESSAGE_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('Help', callback_data=f'help_command'),
InlineKeyboardButton('About', callback_data='about_command')
],
[
InlineKeyboardButton('Close', callback_data='delete')
]
])
BACK_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('Back', callback_data=f'help_command')
],
])
USER_ABOUT_MESSAGE = """
- Website: [{base_site}](https://GreyMatterslinks.in)
- {base_site} API: {shortener_api}
- Username: @{username}
- Header Text:
{header_text}
- Footer Text:
{footer_text}
- Banner Image: {banner_image}
"""
SHORTENER_API_MESSAGE = """To add or update your Shortner Website API,
`/set_api [api]`
Ex: `/set_api 20eb8456008878c0349fc79d40fb4d1634cccf12`
Get API From [{base_site}](https://GreyMatterslinks.in)
Current {base_site} API: `{shortener_api}`"""
HEADER_MESSAGE = """Reply to the Header Text You Want
This Text will be added to the top of every message caption or text
For adding line break use \n
To Remove Header Text: `/header remove`"""
FOOTER_MESSAGE = """Reply to the Footer Text You Want
This Text will be added to the bottom of every message caption or text
For adding line break use \n
To Remove Footer Text: `/footer remove`"""
USERNAME_TEXT = """Current Username: {username}
Usage: `/username your_username` (without @)
This username will be automatically replaced with other usernames in the post
To remove this username, `/username remove`"""
BANNER_IMAGE = """
Usage: `/banner_image image_url` or reply to any Image with this command
This image will be automatically replaced with other images in the post
To remove custom image, `/banner_image remove`
Eg: `/banner_image https://www.nicepng.com/png/detail/436-4369539_movie-logo-film.png`"""
BANNED_USER_TXT = """
Usage: `/ban [User ID]`
Usage: `/unban [User ID]`
List of users that are banned:
{users}
"""
"""
_____ __ __ _ _ _ _______ _
/ ____| | \/ | | | | | ( ) |__ __| | |
| | __ _ __ ___ _ _ | \ / | __ _ | |_ | |_ ___ _ __|/ ___ | | ___ ___ | |__
| | |_ || '__|/ _ \| | | || |\/| | / _` || __|| __|/ _ \| '__| / __| | | / _ \ / __|| '_ \
| |__| || | | __/| |_| || | | || (_| || |_ | |_| __/| | \__ \ | || __/| (__ | | | |
\_____||_| \___| \__, ||_| |_| \__,_| \__| \__|\___||_| |___/ |_| \___| \___||_| |_|
__/ |
|___/
Author: GreyMatter's Tech
GitHub: https://GreyMattersTech.com/GitHub
Website: https://GreyMattersTech.com
"""