yuripeyamashita commited on
Commit
77bb999
1 Parent(s): 5c18dcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -27,7 +27,10 @@ def api():
27
  raise ValueError("Invalid Group")
28
 
29
  if payload.get("unsend_msg_id"):
30
- message_list.pop(payload.get("unsend_msg_id"), None)
 
 
 
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"):