Hello everyone. At first I wanna say thank you for this project. I have been using this project for a few months now and there has been no issues so far till today. I can't login in anymore. I get this error:
error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}
which I believe is coming from session.Login. To give a little bit of context, there's no restoration of session or anything. You will see the way I use go-whatsapp on this link:
https://github.com/yazeed44/social-media-detector-api/blob/master/whatsapp_detect.go
Thank you
go get -u github.com/Rhymen/go-whatsapp
hi @yazeed44 is updating go-whatsapp version fix your issue ?
Hi, I encountered the same problem though I am using the latest version. Can anyone help?
I solved the problem by explicitly setting client version
wac.SetClientVersion(2, 20, 140)
Most helpful comment
go get -u github.com/Rhymen/go-whatsapp