Trying to solve the "unable to connect" error

This commit is contained in:
2021-07-01 23:24:57 +02:00
committed by GitHub
parent ebc3bead04
commit 9554a9d61d

View File

@@ -134,6 +134,7 @@ func testConnexions(param parameters) error {
if err != nil {
return fmt.Errorf("Error creating connection to WhatsApp: %v", err)
}
wac.SetClientVersion(2, 2123, 7)
err = login(wac, param.whatsappSessionFile)
if err != nil {
return fmt.Errorf("Error logging in WhatsApp: %v", err)