Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +2 -0
chatbot/plugins/chat.py
CHANGED
@@ -655,6 +655,8 @@ async def chatbot_talk(client: Client, message: Message):
|
|
655 |
return await message.reply_text("You been blocked blacklisted")
|
656 |
|
657 |
if re.findall(r"\b(This is a picture of me)\b", caption, re.IGNORECASE):
|
|
|
|
|
658 |
try:
|
659 |
backup_chat = await db._get_chatbot_chat_from_db(message.from_user.id)
|
660 |
backup_chat.append({"role": "user", "parts": [{"text": caption}]})
|
|
|
655 |
return await message.reply_text("You been blocked blacklisted")
|
656 |
|
657 |
if re.findall(r"\b(This is a picture of me)\b", caption, re.IGNORECASE):
|
658 |
+
if caption == "picture":
|
659 |
+
return await message.reply_text("You can't write small, it has to be long or short first")
|
660 |
try:
|
661 |
backup_chat = await db._get_chatbot_chat_from_db(message.from_user.id)
|
662 |
backup_chat.append({"role": "user", "parts": [{"text": caption}]})
|