forked from TechifyBots/ShortLink-Bot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtranslation.py
More file actions
212 lines (122 loc) Β· 5.5 KB
/
translation.py
File metadata and controls
212 lines (122 loc) Β· 5.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
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
210
211
212
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
START_MESSAGE = '''**{},
I am Omega Links Converter Bot. I Can Convert Links Directly From Your OmegaLinks.in Account,
Go To** π https://omegalinks.in/member/tools/api?connect=true
**π€ Than Hit Start If You're Redirected To Bot.**
Other Ways π
1. **Go To** π https://omegalinks.in/member/tools/api
2. **Than Copy** API Key
3. **Than Type** `/api` than give a single space and than paste your API Key
**(see example to understand more...)**
/api <space> API Key
(See Example.π)
**Example:**
`/api 9c5a6c96077a1b499d8f953331221159383eb434 `
**π€ Hit** π /features To Know More Features Of This Bot.
**πββοΈ Hit** π /help To Get Help.
**β Hit** π /channel To Get Help About Adding your channel to bot.
**β Hit** π /footer To Get Help About Adding your Custom Footer to bot.
If You are new to OmegaLinks then click on below button to create your account.'''
HELP_MESSAGE = '''**{},**
Ιͺ α΄α΄Ι΄ α΄α΄Ι΄α΄ α΄Κα΄ α΄Ι΄Κ α΄
ΙͺΚα΄α΄α΄ ΚΙͺΙ΄α΄ ΙͺΙ΄α΄α΄ Κα΄α΄Κ α΄ΚΚ κ±Κα΄Κα΄α΄ΚΙ΄ ΚΙͺΙ΄α΄κ±.
π. Ι’α΄ α΄α΄ π https://omegalinks.in/member/tools/api
π. α΄Κα΄Ι΄ α΄α΄α΄Κ **α΄α΄Ιͺ α΄α΄Κ**
π. α΄Κα΄Ι΄ α΄Κα΄α΄ **/api Κα΄α΄Κ α΄α΄Ιͺ α΄α΄Κ**
π£οΈ ππ±ππ¦π©π₯π:
`/api 9c5a6c96077a1b499d8f953331221159383eb434 `
π£οΈ /features α΄α΄ α΄Ι΄α΄α΄‘ α΄α΄Κα΄ κ°α΄α΄α΄α΄Κα΄κ± α΄κ° α΄ΚΙͺκ± Κα΄α΄.
ππππ : κ°α΄Κ α΄
α΄α΄α΄ΙͺΚκ± π π'''
ABOUT_TEXT = '''**
I am Omega Links Converter Bot. I Can Convert Links Directly From Your OmegaLinks.in Account,**
**β‘Featuresβ‘**
**β’ I can Convert any links or posts to your OmegaLinks link / post. (Button Links Posts, Hidden links/Hyperlinks All Are Supported)**
**β’ I can Convert unlimited OmegaLinks.in links at once.** (if you are sending a list of urls.)
**β’ No need to share password or email to convert links.**
**β’ I Can auto add custom footer text to your every post. Hit π /footer To know more...**
**β’ I Can auto add custom Header text to your every post. Hit π /Header To know more...**
**β’ I Can replace / remove other's channel links with your channel link. Hit π /channel To know More...**
**β’ I Can Automatically Replace Your Banner Image To images in the post. Hit π/Banner_image To Know More...**
Anyone who want to use any **other shortner** instead of OmegaLinks than **contact to owner** (all **shortners support** available.)'''
CUSTOM_ALIAS_MESSAGE = """For Custom Alias, `[link] | [custom_alias]`, Send in this format
This feature works only in private mode only
Ex: https://telegram.me/MovieVillaYT | Movie Villa"""
ADMINS_MESSAGE = """
List of Admins who has access to this Bot
{admin_list}
"""
ABOUT_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('α΄α΄Ι΄α΄α΄α΄α΄ α΄π πΎα΄‘Ι΄α΄Κ β£οΈ', url='https://telegram.me/Nobideveloperr')
],
])
HELP_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('α΄α΄Ι΄α΄α΄α΄α΄ α΄π πΎα΄‘Ι΄α΄Κ β£οΈ', url='https://telegram.me/Nobideveloperr')
],
])
START_MESSAGE_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('πͺ Connect To OmegaLinks βοΈ', url=f'https://omegalinks.in/ref/devil')
]
])
BACK_REPLY_MARKUP = InlineKeyboardMarkup([
[
InlineKeyboardButton('Back', callback_data=f'help_command')
],
])
USER_ABOUT_MESSAGE = """
- Website: [{base_site}](https://omegalinks.in/ref/devil)
- Site Link:
{base_site}
- Current Linked API:
{shortener_api}
- Channel 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,
`/api [api]`
Ex: `/api 9c5a6c96077a1b499d8f953331221159383eb434 `
Get API From [{base_site}](https://omegalinks.in/ref/devil)
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`
ππ±ππ¦π©π₯π:
`/footer
βββββββββββββββββ
πββοΈ How To Download π
π https://youtu.be/aJILCCXfNVM
βββββββββββββββββ
π₯ ππ¨π’π§ ππ‘ππ§π§ππ₯ π₯
π https://telegram.me/Nobideveloper`
"""
USERNAME_TEXT = """**α΄Κα΄α΄κ±α΄ α΄Κα΄α΄ ΙͺΙ΄ Ι’Ιͺα΄ α΄Ι΄ κ°α΄Κα΄α΄α΄
/channel (channel link or username)
ππ±ππ¦π©π₯π:
/channel @NobiDeveloper
ππ«
`/channel https://telegram.me/NobiDeveloper`
π /features α΄α΄ α΄Ι΄α΄α΄‘ α΄α΄Κα΄ κ°α΄α΄α΄α΄Κα΄κ± α΄κ° α΄ΚΙͺκ± Κα΄α΄."""
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://telegra.ph/file/5e96340a91470256b387a.jpg`"""
BANNED_USER_TXT = """
Usage: `/ban [User ID]`
Usage: `/unban [User ID]`
List of users that are banned:
{users}
"""