Trying to solve the login error

This commit is contained in:
2021-11-09 23:05:04 +01:00
parent b9def5d0be
commit 0c013f6bdd

View File

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