asternic / wuzapi

Simple RESTful API for WhatsApp in Golang (using the Whatsmeow multi device library)
MIT License
105 stars 58 forks source link

BUG: Message_id from sent a message is different to events.Receipt #39

Closed monyuan closed 1 month ago

monyuan commented 2 months ago
image

https://github.com/tulir/whatsmeow/issues/343

monyuan commented 2 months ago

resp, err = clientPointer[userid].SendMessage(context.Background(), recipient, msg, whatsmeow.SendRequestExtra{ID: msgid}) if err != nil { s.Respond(w, r, http.StatusInternalServerError, errors.New(fmt.Sprintf("Error sending message: %v", err))) return }

asternic commented 2 months ago

Hi monyuan,

Not sure if I understand your proposed solution, adding a 4th parameter SEndRequestExtra? Can you send a pull request so I can check/test ?