randydev commited on
Commit
83c1b35
·
verified ·
1 Parent(s): 8441d3e

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. 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", query_base, 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}},
 
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}},