forked from JishuDeveloper/Ultra-Forward-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtranslation.py
154 lines (94 loc) · 4.8 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
# Jishu Developer
# Don't Remove Credit 🥺
# Telegram Channel @Madflix_Bots
# Backup Channel @JishuBotz
# Developer @JishuDeveloper
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 @Madflix_Bots</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>📢 Channel :</b> <a href='https://t.me/Madflix_Bots'>Madflix Botz</a>
<b>🧑💻 Developer :</b> <a href='https://t.me/CallAdminRobot'>Jishu Developer</a>
<b>♻️ Bot Made By :</b> @Madflix_Bots"""
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>"""
# Jishu Developer
# Don't Remove Credit 🥺
# Telegram Channel @Madflix_Bots
# Backup Channel @JishuBotz
# Developer @JishuDeveloper