-
Notifications
You must be signed in to change notification settings - Fork 25
/
translation.py
149 lines (89 loc) Β· 4.66 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
# Stubborn Developer
# Don't Remove Credit π₯Ί
# Telegram Channel @Stubborn1223
import os
from config import Config
class Translation(object):
START_TXT = """πββ Hey {}
π I Am A Advanced Auto Forward Bot
π I Can Forward All Message From One Channel To Another Channel
π Click Help Button To Know More About Me
<b>Bot Is Made By @Stubborn1223</b>"""
HELP_TXT = """<b><u>π οΈ Help</b></u>
<b><u>π Available Commands :</u></b>
β£ __/start - Check I'm Alive__
β£ __/forward - Forward Messages__
β£ __/unequify - Delete Duplicate Messages In Channels__
β£ __/settings - Configure Your Settings__
β£ __/reset - Reset Your Settings__
<b><u>π’ Features :</b></u>
βΊ __Forward Message From Public Channel To Your Channel Without Admin Permission. If The Channel Is Private Need Admin Permission__
βΊ __Forward Message From Private Channel To Your Channel By Using Userbot(User Must Be Member In There)__
βΊ __Custom Caption__
βΊ __Custom Button__
βΊ __Support Restricted Chats__
βΊ __Skip Duplicate Messages__
βΊ __Filter Type Of Messages__
βΊ __Skip Messages Based On Extensions & Keywords & Size__
"""
HOW_USE_TXT = """<b><u>β οΈ Before Forwarding :</b></u>
βΊ __Add A Bot Or Userbot__
βΊ __Add Atleast One To Channel (Your Bot/Userbot Must Be Admin In There)__
βΊ __You Can Add Chats Or Bots By Using /settings__
βΊ __If The **From Channel** Is Private Your Userbot Must Be Member In There Or Your Bot Must Need Admin Permission In There Also__
βΊ __Then Use /forward To Forward Messages__"""
ABOUT_TXT = """<b>π€ My Name :</b> {}
<b>π Language :</b> <a href='https://python.org'>Python 3</a>
<b>π Library :</b> <a href='https://pyrogram.org'>Pyrogram 2.0</a>
<b>π Server :</b> <a href='https://heroku.com'>Heroku</a>
<b>π§βπ» Developer :</b> <a href='https://t.me/@Stubborn1223'> ππππΉπΉπββ π</a>
<b>β»οΈ Bot Made By :</b> @Stubborn1223 """
STATUS_TXT = """<b><u>Bot Status</u></b>
<b>π± Total Users :</b> <code>{}</code>
<b>π€ Total Bots :</b> <code>{}</code>
<b>π Forwardings :</b> <code>{}</code>
"""
FROM_MSG = "<b><u>Set Source Chat</></>\n\nForward The Last Message Or Last Message Link Of Source Chat.\n/cancel - To Cancel This Process"
TO_MSG = "<b><u>Choose Target Chat</u></b>\n\nChoose Your Target Chat From The Given Buttons.\n/cancel - To Cancel This Process"
SKIP_MSG = "<b><u>Set Message Skiping Number</u></b>\n\nSkip The Message As Much As You Enter The Number And The Rest Of The Message Will Be Forwarded\nDefault Skip Number = <code>0</code>\n<code>eg: You Enter 0 = 0 Message Skiped\nYou Enter 5 = 5 Message Skiped</code>\n/cancel - To Cancel This Process"
CANCEL = "Process Cancelled Succefully !"
BOT_DETAILS = "<b><u>π Bot Details</u></b>\n\n<b>β£ Name :</b> <code>{}</code>\n<b>β£ Bot ID :</b> <code>{}</code>\n<b>β£ Username :</b> @{}"
USER_DETAILS = "<b><u>π UserBot Details</u></b>\n\n<b>β£ Name :</b> <code>{}</code>\n<b>β£ User ID :</b> <code>{}</code>\n<b>β£ Username :</b> @{}"
TEXT = """<b><u>Forward Status</u></b>
<b>π΅ Fetch Message :</b> <code>{}</code>
<b>β
Successfully Forward :</b> <code>{}</code>
<b>π₯ Dublicate Message :</b> <code>{}</code>
<b>π Deleted Message :</b> <code>{}</code>
<b>πͺ Skipped Message :</b> <code>{}</code>
<b>π Filtered Message :</b> <code>{}</code>
<b>π Current Status :</b> <code>{}</code>
<b>π₯ Percentage :</b> <code>{}</code> %
{}
"""
TEXT1 = """<b><u>Forwarded Status</u></b>
<b>π΅ Fetched Message :</b> <code>{}</code>
<b>β
Successfully Forward :</b> <code>{}</code>
<b>π₯ Dublicate Message :</b> <code>{}</code>
<b>π Deleted Message :</b> <code>{}</code>
<b>πͺ Skipped :</b> <code>{}</code>
<b>π Stats :</b> <code>{}</code>
<b>β³ Progress :</b> <code>{}</code>
<b>β° ETA :</b> <code>{}</code>
{}"""
DUPLICATE_TEXT = """<b><u>Unequify Status</u></b>
<b>π΅ Fetched Files :</b> <code>{}</code>
<b>π₯ Dublicate Deleted :</b> <code>{}</code>
{}
"""
DOUBLE_CHECK = """<b><u>Double Checking</u></b>
Before Forwarding The Messages Click The Yes Button Only After Checking The Following
<b>β
Your Bot :</b> [{botname}](t.me/{botuname})
<b>β
From Channel :</b> <code>{from_chat}<>
<b>β
To Channel :</b> <code>{to_chat}</code>
<b>β
Skip Messages :</b> <code>{skip}</code>
<i>Β° [{botname}](t.me/{botuname}) Must Be Admin In <b>Target Chat</b></i> (<code>{to_chat}</code>)
<i>Β° If The <b>Source Chat</b> Is Private Your Userbot Must Be Member Or Your Bot Must Be Admin In There Also</i>
<b>If The Above Is Checked Then The Yes Button Can Be Clicked</b>"""
# Stubborn Developer
# Don't Remove Credit π₯Ί
# Telegram Channel @Stubborn1223