Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +2 -2
chatbot/plugins/chat.py
CHANGED
@@ -484,8 +484,8 @@ async def chatbot_talk(client: Client, message: Message):
|
|
484 |
caption = message.caption or "What this?"
|
485 |
await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_PHOTO)
|
486 |
await asyncio.sleep(1.5)
|
487 |
-
|
488 |
-
if re.findall(r"\b(
|
489 |
await db.backup_chatbot.update_one(
|
490 |
{"user_id": message.from_user.id},
|
491 |
{"$set": {"background_file_id": message.photo.file_id}},
|
|
|
484 |
caption = message.caption or "What this?"
|
485 |
await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_PHOTO)
|
486 |
await asyncio.sleep(1.5)
|
487 |
+
LOGS.info(f"this caption: {caption}")
|
488 |
+
if re.findall(r"\b(pro:editimage)\b", caption, re.IGNORECASE):
|
489 |
await db.backup_chatbot.update_one(
|
490 |
{"user_id": message.from_user.id},
|
491 |
{"$set": {"background_file_id": message.photo.file_id}},
|