Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
634 stars 185 forks source link

Trying to Restore Session but got Error 401 Unpaired with Cellphone #277

Closed xianliu18 closed 1 year ago

xianliu18 commented 1 year ago

First, I scan QR Code, and generate keys.json and session.json. I change *.smile* back to .json*. Second, I restart my application, and try to restore session using already generated .json file, got 401 Error.

When I use old version, I can use generated *.json.

After the code is updated, is there an error in the parameters I requested?

Auties00 commented 1 year ago

the library serializes its data as a gzip encoded smile file. It's not a JSON, and it's not even a decoded file. I have no idea what you are referring to, i might need some code