forked from GreyMatters-Tech/Advance-EvaMaria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Script.py
121 lines (100 loc) ยท 5.07 KB
/
Script.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
import re
from os import environ
id_pattern = re.compile(r'^.\d+$')
def is_enabled(value, default):
if value.lower() in ["true", "yes", "1", "enable", "y"]:
return True
elif value.lower() in ["false", "no", "0", "disable", "n"]:
return False
else:
return default
class script(object):
START_TXT = environ.get("START_TXT", '''<b>Hello {} ๐๐ป I'm OTT Search Bot I can share Movies and Series ๐.</b>
<b>Add me to your group to see the magic or watch the tutorial video . Link is below.</b>
<a href=https://t.me/tutorial_Teammas/6><b>HOW TO USE THIS BOT</b></a>''')
HELP_TXT = """๐ท๐ด๐ {}
๐ท๐ด๐๐ด ๐ธ๐ ๐ผ๐ ๐ท๐ด๐ป๐ฟ ๐ฒ๐พ๐ผ๐ผ๐ฐ๐ฝ๐ณ๐."""
ABOUT_TXT = """<b><i>๐ค แดส ษดแดแดแด : <a href=https://t.me/Teammas_Link><b>OTT Search Bot</b></a>\n
๐จโ๐ป แด
แดแด แดสแดแดแดส : <a href=https://t.me/TeamMas_Admin_Bot><b>MAS</b></a>\n
๐ สแดษดษขแดแดษขแด : แดสสแดษขสแดแด\n
๐ ๊ฐสแดแดแดแดกแดสแด : แดสแดสแดษด 3\n
๐ก สแดsแดแดแด
แดษด : Heroku\n
๐ข แดแดแด
แดแดแดs แดสแดษดษดแดส : <a href=https://t.me/mas_index><b></b>แดสษชแดแด สแดสแด</a>\n
๐ แด แดสsษชแดษด : แด 4.0\n</b></i>"""
SOURCE_TXT = """<b>๐๐ซ๐๐๐ญ๐ ๐๐ง๐ ๐๐ข๐ค๐ ๐๐ก๐ข๐ฌ:</b>
ยป I will Create One Bot For You<b>
ยป Contact Me @TeamMas_Admin_Bot<b>"""
MANUELFILTER_TXT = """Help: <b>Filters</b>
- Filter is the feature were users can set automated replies for a particular keyword and Search Bot will respond whenever a keyword is found the message
<b>NOTE:</b>
1. Search Bot should have admin privillage.
2. only admins can add filters in a chat.
3. alert buttons have a limit of 64 characters.
<b>Commands and Usage:</b>
โข /filter - <code>add a filter in chat</code>
โข /filters - <code>list all the filters of a chat</code>
โข /del - <code>delete a specific filter in chat</code>
โข /delall - <code>delete the whole filters in a chat (chat owner only)</code>"""
BUTTON_TXT = """Help: <b>Buttons</b>
- Search Bot Supports both url and alert inline buttons.
<b>NOTE:</b>
1. Telegram will not allows you to send buttons without any content, so content is mandatory.
2. Search Bot supports buttons with any telegram media type.
3. Buttons should be properly parsed as markdown format
<b>URL buttons:</b>
<code>[Button Text](buttonurl:https://t.me/Teammas_Link)</code>
<b>Alert buttons:</b>
<code>[Button Text](buttonalert:This is an alert message)</code>"""
AUTOFILTER_TXT = """Help: <b>Auto Filter</b>
<b>NOTE:</b>
1. Make me the admin of your channel if it's private.
2. make sure that your channel does not contains camrips, porn and fake files.
3. Forward the last message to me with quotes.
I'll add all the files in that channel to my db."""
CONNECTION_TXT = """Help: <b>Connections</b>
- Used to connect bot to PM for managing filters
- it helps to avoid spamming in groups.
<b>NOTE:</b>
1. Only admins can add a connection.
2. Send <code>/connect</code> for connecting me to ur PM
<b>Commands and Usage:</b>
โข /connect - <code>connect a particular chat to your PM</code>
โข /disconnect - <code>disconnect from a chat</code>
โข /connections - <code>list all your connections</code>"""
EXTRAMOD_TXT = """Help: <b>Extra Modules</b>
<b>NOTE:</b>
these are the extra features of Search Bot
<b>Commands and Usage:</b>
โข /id - <code>get id of a specified user.</code>
โข /info - <code>get information about a user.</code>
โข /imdb - <code>get the film information from IMDb source.</code>
โข /search - <code>get the film information from various sources.</code>"""
ADMIN_TXT = """Help: <b>Admin mods</b>
<b>NOTE:</b>
This module only works for my admins
<b>Commands and Usage:</b>
โข /logs - <code>to get the rescent errors</code>
โข /stats - <code>to get status of files in db.</code>
โข /delete - <code>to delete a specific file from db.</code>
โข /users - <code>to get list of my users and ids.</code>
โข /chats - <code>to get list of the my chats and ids </code>
โข /leave - <code>to leave from a chat.</code>
โข /disable - <code>do disable a chat.</code>
โข /ban - <code>to ban a user.</code>
โข /unban - <code>to unban a user.</code>
โข /channel - <code>to get list of total connected channels</code>
โข /broadcast - <code>to broadcast a message to all users</code>"""
STATUS_TXT = """โ
๐๐พ๐๐ฐ๐ป ๐ต๐ธ๐ป๐ด๐: <code>{}</code>
โ
๐๐พ๐๐ฐ๐ป ๐๐๐ด๐๐: <code>{}</code>
โ
๐๐พ๐๐ฐ๐ป ๐ฒ๐ท๐ฐ๐๐: <code>{}</code>
โ
๐๐๐ด๐ณ ๐๐๐พ๐๐ฐ๐ถ๐ด: <code>{}</code> ๐ผ๐๐ฑ
โ
๐ต๐๐ด๐ด ๐๐๐พ๐๐ฐ๐ถ๐ด: <code>{}</code> ๐ผ๐๐ฑ"""
LOG_TEXT_G = """#๐๐๐ฐ๐๐ซ๐จ๐ฎ๐ฉ
<b>แโบ ๐๐ซ๐จ๐ฎ๐ฉ โชผ {}(<code>{}</code>)</b>
<b>แโบ ๐๐จ๐ญ๐๐ฅ ๐๐๐ฆ๐๐๐ซ๐ฌ โชผ <code>{}</code></b>
<b>แโบ ๐๐๐๐๐ ๐๐ฒ โชผ {}</b>
"""
LOG_TEXT_P = """#๐๐๐ฐ๐๐ฌ๐๐ซ
<b>แโบ ๐๐ - <code>{}</code></b>
<b>แโบ ๐๐๐ฆ๐ - {}</b>
"""