Closed amogsiddh closed 1 year ago
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.
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.