Auties00 / Cobalt

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

the method build is undefined for the all types OptionBulder #420

Closed roxf18 closed 7 months ago

roxf18 commented 7 months ago

Hi Auties00 Hello, I have written this code according to your example in a MAVEN project, but I am facing this error Whatsapp.webBuilder() .lastConnection() .build()//the method build is undefined for the WebOptionBuilder????????????? .addLoggedInListener(() -> System.out.println("Connected!")) .addNewMessageListener(TesterBot::onNewMessage) .connectAndAwait() .join();

thanks

Auties00 commented 7 months ago

Hi Auties00 Hello, I have written this code according to your example in a MAVEN project, but I am facing this error Whatsapp.webBuilder() .lastConnection() .build()//the method build is undefined for the WebOptionBuilder????????????? .addLoggedInListener(() -> System.out.println("Connected!")) .addNewMessageListener(TesterBot::onNewMessage) .connectAndAwait() .join();

thanks

The documentation isn't up to date with the master branch. When I release the First stable cobalt release, I'll update it. In the meantime, use the source as a documentation