Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,10 @@ def api():
|
|
| 27 |
raise ValueError("Invalid Group")
|
| 28 |
|
| 29 |
if payload.get("unsend_msg_id"):
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 31 |
raise ValueError("Unsend Success")
|
| 32 |
|
| 33 |
if "$" not in payload.get("msg_text"):
|
|
|
|
| 27 |
raise ValueError("Invalid Group")
|
| 28 |
|
| 29 |
if payload.get("unsend_msg_id"):
|
| 30 |
+
unsend_msg_id = payload.get("unsend_msg_id")
|
| 31 |
+
message_list.pop(unsend_msg_id, None)
|
| 32 |
+
filtered_data = {key: value for key, value in message_list.items() if value["quoted_msg_id"] != unsend_msg_id}
|
| 33 |
+
print(filtered_data)
|
| 34 |
raise ValueError("Unsend Success")
|
| 35 |
|
| 36 |
if "$" not in payload.get("msg_text"):
|