Rhymen / go-whatsapp

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

server closed connection,code: 1000,text: #575

Closed zharazhar17 closed 3 years ago

zharazhar17 commented 3 years ago

after update go-whatsapp cannot get QR and response look this server closed connection,code: 1000,text:,

what the solution , and other people same problem like me ? thanks guys

firstyanto commented 3 years ago

Please check #574 , it will solve your problem

zharazhar17 commented 3 years ago

thanks sir, and then after change version in session.go ,i have other problem like this , panic: close of closed channel

goroutine 8 [running]: github.com/Rhymen/go-whatsapp.(*Conn).Disconnect(0x1952460, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)

any solution sir about my problem like this ? thanks

zharazhar17 commented 3 years ago

solved am change version like this #574

jairforero commented 3 years ago

You need work with repo local in vendor, go to folder github.com/rhymen/go-whatsapp open file session.go in line 21 where is "var waVersion" change valur for version of whatsapp app