Spaces:
Running
Running
Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +1 -0
chatbot/plugins/chat.py
CHANGED
@@ -295,5 +295,6 @@ async def chatbot_talk(client: Client, message: Message):
|
|
295 |
backup_chat.append({"role": "model", "parts": [{"text": output}]})
|
296 |
await db._update_chatbot_chat_in_db(message.from_user.id, backup_chat)
|
297 |
await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
|
|
|
298 |
except Exception as e:
|
299 |
return await message.reply_text(str(e))
|
|
|
295 |
backup_chat.append({"role": "model", "parts": [{"text": output}]})
|
296 |
await db._update_chatbot_chat_in_db(message.from_user.id, backup_chat)
|
297 |
await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
|
298 |
+
return
|
299 |
except Exception as e:
|
300 |
return await message.reply_text(str(e))
|