Add disabled text
Browse files- chatbot/plugins/chat.py +7 -0
chatbot/plugins/chat.py
CHANGED
@@ -1221,6 +1221,13 @@ async def chatbot_talk(client: Client, message: Message):
|
|
1221 |
await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
|
1222 |
return
|
1223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1224 |
if re.findall(r"\b(about:developer)\b", query_base, re.IGNORECASE):
|
1225 |
await message.reply_text(CREDITS_DEVELOPER)
|
1226 |
return
|
|
|
1221 |
await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
|
1222 |
return
|
1223 |
|
1224 |
+
all_regex_disabled = re.match(r"(--stream-images|--edit-images)\s*(.*)", query_base, re.IGNORECASE)
|
1225 |
+
if all_regex_disabled:
|
1226 |
+
await message.reply_text(
|
1227 |
+
"Use upload your photo and caption instead of text is disabled"
|
1228 |
+
)
|
1229 |
+
return
|
1230 |
+
|
1231 |
if re.findall(r"\b(about:developer)\b", query_base, re.IGNORECASE):
|
1232 |
await message.reply_text(CREDITS_DEVELOPER)
|
1233 |
return
|