You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i'm trying to create a new application using cobalt just created a rest endpoint to test the code provided on the example, that its exactly like this:
@GetMapping("getqr")
privateBooleangetQRCode(){
Whatsapp.webBuilder() // Use the Web api
.newConnection() // Deserialize the last connection, or create a new one if it doesn't exist
.unregistered(QrHandler.toTerminal()) // Print the QR to the terminal
.addLoggedInListener(api -> System.out.printf("Connected: %s%n", api.store().privacySettings())) // Print a message when connected
.addDisconnectedListener(reason -> System.out.printf("Disconnected: %s%n", reason)) // Print a message when disconnected
.addNewChatMessageListener(message -> System.out.printf("New message: %s%n", message.toJson())) // Print a message when a new chat message arrives
.connect() // Connect to Whatsapp asynchronously
.join() // Await the result
.awaitDisconnection(); // Waitreturntrue;
}
after i read the QR Code it get's me the following error:
Hello, i'm trying to create a new application using cobalt just created a rest endpoint to test the code provided on the example, that its exactly like this:
after i read the QR Code it get's me the following error:
anyone can help me with that?
The text was updated successfully, but these errors were encountered: