-
Field Summary
FieldsFields inherited from class it.auties.whatsapp.api.OptionsBuilder
errorHandler, keys, socketExecutor, store
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhistoryLength
(WebHistoryLength historyLength) Sets how much chat history Whatsapp should send when the QR is first scanned.Creates a Whatsapp instance with no handlers This method assumes that you have already logged in using a QR code or OTP Otherwise, it returns an empty optional.unregistered
(long phoneNumber, PairingCodeHandler pairingCodeHandler) Creates a Whatsapp instance with an OTP handlerunregistered
(QrHandler qrHandler) Creates a Whatsapp instance with a qr handlerMethods inherited from class it.auties.whatsapp.api.OptionsBuilder
autodetectListeners, automaticPresenceUpdates, checkPatchMacks, errorHandler, name, proxy, releaseChannel, socketExecutor, textPreviewSetting, version
-
Field Details
-
whatsapp
-
-
Constructor Details
-
WebOptionsBuilder
-
-
Method Details
-
historyLength
Sets how much chat history Whatsapp should send when the QR is first scanned. By default, one year- Returns:
- the same instance for chaining
-
unregistered
Creates a Whatsapp instance with a qr handler- Parameters:
qrHandler
- the non-null handler to use- Returns:
- a Whatsapp instance
-
unregistered
Creates a Whatsapp instance with an OTP handler- Parameters:
phoneNumber
- the phone number of the userpairingCodeHandler
- the non-null handler for the pairing code- Returns:
- a Whatsapp instance
-
registered
Creates a Whatsapp instance with no handlers This method assumes that you have already logged in using a QR code or OTP Otherwise, it returns an empty optional.- Returns:
- an optional
-