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