Spaces:
Running
Running
Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +8 -8
chatbot/plugins/chat.py
CHANGED
@@ -115,8 +115,8 @@ async def chatbot_talk(client: Client, message: Message):
|
|
115 |
return
|
116 |
except InvalidArgument as e:
|
117 |
return await ai_reply.edit_text(f"Error: {e}")
|
118 |
-
except Exception
|
119 |
-
|
120 |
|
121 |
if message.audio or message.voice:
|
122 |
await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_AUDIO)
|
@@ -184,8 +184,8 @@ async def chatbot_talk(client: Client, message: Message):
|
|
184 |
return
|
185 |
except InvalidArgument as e:
|
186 |
return await ai_reply.edit_text(f"Error: {e}")
|
187 |
-
except Exception
|
188 |
-
|
189 |
|
190 |
if message.video:
|
191 |
await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_VIDEO)
|
@@ -250,8 +250,8 @@ async def chatbot_talk(client: Client, message: Message):
|
|
250 |
return
|
251 |
except InvalidArgument as e:
|
252 |
return await ai_reply.edit_text(f"Error: {e}")
|
253 |
-
except Exception
|
254 |
-
|
255 |
|
256 |
if message.text:
|
257 |
await client.send_chat_action(message.chat.id, enums.ChatAction.TYPING)
|
@@ -296,5 +296,5 @@ async def chatbot_talk(client: Client, message: Message):
|
|
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
|
300 |
-
|
|
|
115 |
return
|
116 |
except InvalidArgument as e:
|
117 |
return await ai_reply.edit_text(f"Error: {e}")
|
118 |
+
except Exception:
|
119 |
+
pass
|
120 |
|
121 |
if message.audio or message.voice:
|
122 |
await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_AUDIO)
|
|
|
184 |
return
|
185 |
except InvalidArgument as e:
|
186 |
return await ai_reply.edit_text(f"Error: {e}")
|
187 |
+
except Exception:
|
188 |
+
pass
|
189 |
|
190 |
if message.video:
|
191 |
await client.send_chat_action(message.chat.id, enums.ChatAction.UPLOAD_VIDEO)
|
|
|
250 |
return
|
251 |
except InvalidArgument as e:
|
252 |
return await ai_reply.edit_text(f"Error: {e}")
|
253 |
+
except Exception:
|
254 |
+
pass
|
255 |
|
256 |
if message.text:
|
257 |
await client.send_chat_action(message.chat.id, enums.ChatAction.TYPING)
|
|
|
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:
|
300 |
+
pass
|