Auties00 / Cobalt

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

How do I write my store and keys for the new version? #431

Closed orionnnnnnn closed 3 months ago

orionnnnnnn commented 6 months ago

I looked at the source code and found that the new version canceled the of constructor. In the past I only needed 7 parameters to build the keys object, now I need 26 parameters. For example, registrationId was generated through KeyHelper.registrationId() in the old version. Now I have to generate it myself.

Auties00 commented 6 months ago

Will add in 0.0.2

orionnnnnnn commented 6 months ago

Will add in 0.0.2

I am using version 0.0.2 and I saw KeysBuilder and StoreBuilder. Can you tell me how to use them? Also I can't find the javadoc for the new version.

Auties00 commented 3 months ago

Added support already, check ControllerSerializer, Store#newStore, Keys#newKeys, StoreBuilder and KeysBuilder

orionnnnnnn commented 3 months ago

Added support already, check ControllerSerializer, Store#newStore, Keys#newKeys, StoreBuilder and KeysBuilder

Can you give me an example? I checked keysBuilder and I found that it still needs to fill in a lot of parameters.

Auties00 commented 3 months ago

Added support already, check ControllerSerializer, Store#newStore, Keys#newKeys, StoreBuilder and KeysBuilder

Can you give me an example? I checked keysBuilder and I found that it still needs to fill in a lot of parameters.

Use Keys.newKeys if you don't know how to fill it out

orionnnnnnn commented 3 months ago

Use Keys.newKeys if you don't know how to fill it out

I used newKeys and got an error message saying Cannot invoke "it.auties.whatsapp.controller.ControllerSerializer.serializeKeys(it.auties.whatsapp.controller.Keys, boolean)" because "this.serializer" is null