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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user