Skip to content

Commit

Permalink
Add event for #30
Browse files Browse the repository at this point in the history
  • Loading branch information
Labfox committed Sep 11, 2024
1 parent 2ec2bd6 commit 863c011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion whatsfly/dependencies/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ func (w *WhatsAppClient) handler(rawEvt interface{}) {
json_str := "{\"eventType\":\"Message\",\"info\":" + info + ",\"message\":" + message_info + "}"

w.addEventToQueue(json_str)

data, _ := json.Marshal(evt)
w.addEventToQueue("{\"eventType\": \"MessageJson\", \"message\": "+string(data)+"}")


case *events.Receipt:
Expand Down

0 comments on commit 863c011

Please sign in to comment.