randydev commited on
Commit
e66ca91
·
verified ·
1 Parent(s): 8c6eae7

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +3 -0
chatbot/plugins/chat.py CHANGED
@@ -92,6 +92,9 @@ async def chatbot_talk(client: Client, message: Message):
92
  chat_user = await db.get_chatbot(message.chat.id)
93
  if not chat_user:
94
  return
 
 
 
95
  if message.photo:
96
  await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_PHOTO)
97
  await asyncio.sleep(1.5)
 
92
  chat_user = await db.get_chatbot(message.chat.id)
93
  if not chat_user:
94
  return
95
+ if message.reply_to_message and message.reply_to_message.from_user:
96
+ if message.reply_to_message.from_user.id != client.me.id:
97
+ return
98
  if message.photo:
99
  await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_PHOTO)
100
  await asyncio.sleep(1.5)