Open mateors opened 2 years ago
error logging in: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}
where the code sir? addition: if u didn't SetClientVersion, u need to set it first. example :
wac, err := whatsapp.NewConn(3 * time.Minute)
wac.SetClientVersion(2, 2123, 7)
i got the same error
this is the code
qrChan := make(chan string)
go func() {
fmt.Print(<-qrChan)
}()
session, err = conn.Login(qrChan) // <-- here is the error
@akbarfa49 your suggestion works, thank you :)
error logging in: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}