Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +6 -2
chatbot/plugins/chat.py
CHANGED
@@ -94,7 +94,11 @@ blacklist_patterns = [
|
|
94 |
|
95 |
def is_command_disabled(text):
|
96 |
text_lower = text.lower()
|
97 |
-
if text_lower.startswith("/") and not (
|
|
|
|
|
|
|
|
|
98 |
return True
|
99 |
else:
|
100 |
return False
|
@@ -1007,7 +1011,7 @@ async def startbot(client: Client, message: Message):
|
|
1007 |
| filters.document
|
1008 |
)
|
1009 |
& filters.private
|
1010 |
-
& ~filters.command(["start", "setmodel"])
|
1011 |
& ~filters.forwarded
|
1012 |
)
|
1013 |
async def chatbot_talk(client: Client, message: Message):
|
|
|
94 |
|
95 |
def is_command_disabled(text):
|
96 |
text_lower = text.lower()
|
97 |
+
if text_lower.startswith("/") and not (
|
98 |
+
text_lower.startswith("/setmodel")
|
99 |
+
or text_lower.startswith("/start")
|
100 |
+
or text_lower.startswith("/mypremium")
|
101 |
+
):
|
102 |
return True
|
103 |
else:
|
104 |
return False
|
|
|
1011 |
| filters.document
|
1012 |
)
|
1013 |
& filters.private
|
1014 |
+
& ~filters.command(["start", "setmodel", "mypremium"])
|
1015 |
& ~filters.forwarded
|
1016 |
)
|
1017 |
async def chatbot_talk(client: Client, message: Message):
|