Trying to solve the "unable to connect" error

This commit is contained in:
2021-07-01 23:13:32 +02:00
committed by GitHub
parent 2e65cf9bb0
commit ebc3bead04

View File

@@ -183,6 +183,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)
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)