Replies: 2 comments 3 replies
-
I'm using the UUID to reconnect, here's an example UUID id = "";
Whatsapp whatsapp = Whatsapp.webBuilder()
.newConnection(id)
.build()
.addDisconnectedListener(onDisconnectedActions::onDisconnected)
.addNewMessageListener(newMessageActions::onNewMessage)
.connect()
.get(120, TimeUnit.SECONDS);
whatsapp.store().uuid(); |
Beta Was this translation helpful? Give feedback.
2 replies
-
is there any solution for this ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i am reconnecting old session with phone number using following code.. please correct me if i am wrong.
Whatsapp wsp =
Whatsapp
.webBuilder()
.serializer(new DefaultControllerSerializer(Path.of("C:\whatsapp4j")))
.newConnection(phonenumber)
.name("WhatsAppVPN")
.historyLength(WebHistoryLength.ZERO)
.errorHandler(ErrorHandler.toTerminal())
.build()
.addListener((Listener) new Wsplistener())
.addDisconnectedListener(reason -> System.out.printf("Disconnected: %s%n", reason))
.connect()
.join();
it recoonect with that session.. but messages are not send.. please guide me.
Beta Was this translation helpful? Give feedback.
All reactions