Update app.py
Browse files
app.py
CHANGED
|
@@ -165,7 +165,7 @@ def poll_updates():
|
|
| 165 |
chat_id = callback["message"]["chat"]["id"]
|
| 166 |
data = callback.get("data")
|
| 167 |
|
| 168 |
-
|
| 169 |
chat_histories[chat_id] = [] # Clear memory
|
| 170 |
logger.info(f"Memory reset via inline button for {chat_id}")
|
| 171 |
|
|
|
|
| 165 |
chat_id = callback["message"]["chat"]["id"]
|
| 166 |
data = callback.get("data")
|
| 167 |
|
| 168 |
+
if data == "reset_chat":
|
| 169 |
chat_histories[chat_id] = [] # Clear memory
|
| 170 |
logger.info(f"Memory reset via inline button for {chat_id}")
|
| 171 |
|