randydev commited on
Commit
84661f4
1 Parent(s): ea5a32b

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +2 -2
chatbot/plugins/chat.py CHANGED
@@ -88,8 +88,8 @@ async def rmchatbot_user(client: Client, message: Message):
88
  async def chatbot_talk(client: Client, message: Message):
89
  genai.configure(api_key=GOOGLE_API_KEY)
90
  chat_user = await db.get_chatbot(message.chat.id)
91
- if not chat_user:
92
- return
93
  if message.reply_to_message and message.reply_to_message.from_user:
94
  if message.reply_to_message.from_user.id != client.me.id:
95
  return
 
88
  async def chatbot_talk(client: Client, message: Message):
89
  genai.configure(api_key=GOOGLE_API_KEY)
90
  chat_user = await db.get_chatbot(message.chat.id)
91
+ if not chat_user:
92
+ return
93
  if message.reply_to_message and message.reply_to_message.from_user:
94
  if message.reply_to_message.from_user.id != client.me.id:
95
  return