Skip to content

Commit

Permalink
fix payload user
Browse files Browse the repository at this point in the history
  • Loading branch information
wl-zhao committed Jan 22, 2025
1 parent da9b6fa commit 5bb9140
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions servers/automata.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ def prepare_payload(automata: Automata, event_data: MyShellUserInput, sess_state
# compatible with myshell
payload["images"] = payload.get("media_url", [])
if "user" in payload:
payload["user"] = json.loads(payload["user"])
payload["user"]["is_bot"] = payload["user"].get("bot")

ctx = {"payload": payload}
Expand Down

0 comments on commit 5bb9140

Please sign in to comment.