Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.05k stars 490 forks source link

Unmarshal error during login #612

Closed dstdfx closed 2 years ago

dstdfx commented 2 years ago

Hi, I'm trying to run login example but it's falling with: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}

I've changed the code of the library a bit in order to check what's inside the response and looks like the format has changed: ["Cmd",{"type":"update"}]

adzimzf commented 2 years ago

I got the same issue when trying this, but solve it after following this issue https://github.com/Rhymen/go-whatsapp/issues/578

dstdfx commented 2 years ago

@adzimzf It's working, indeed! Thanks! Looks like the examples still need to be fixed.