Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AthulNoobie authored Jun 28, 2024
1 parent 79a38b3 commit 3f4c00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def message_handler(data,phone_id):
sender=data["from"]
if data["type"] == "text":
prompt = data["text"]["body"]
if db:insert_chat(owner_phone,prompt)
if db:insert_chat(sender,prompt)
convo.send_message(prompt)
else:
media_url_endpoint = f'https://graph.facebook.com/v19.0/{data[data["type"]]["id"]}/'
Expand Down

0 comments on commit 3f4c00b

Please sign in to comment.