set go-whatsapp client version to fix login error

Based on https://github.com/Rhymen/go-whatsapp/issues/626#issuecomment-957082821
This commit is contained in:
dgrisham
2021-11-02 09:15:51 -06:00
parent b282213ca1
commit aa53f24c39

View File

@@ -194,7 +194,7 @@ func (sm *SessionManager) getConnection() *whatsapp.Conn {
}
wac = wacc
sm.connection = wac
//wac.SetClientVersion(2, 2021, 4)
wac.SetClientVersion(2, 2142, 12)
} else {
wac = sm.connection
}