-
Field Summary
FieldsFields inherited from class it.auties.whatsapp.api.OptionsBuilder
errorHandler, keys, store -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautomaticMessageReceipts(boolean automaticMessageReceipts) Whether the library should send receipts automatically for messages By default disabled For the web api, if enabled, the companion won't receive notificationshistoryLength(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, textPreviewSetting
-
Field Details
-
whatsapp
-
-
Constructor Details
-
WebOptionsBuilder
-
-
Method Details
-
automaticMessageReceipts
Whether the library should send receipts automatically for messages By default disabled For the web api, if enabled, the companion won't receive notifications- Returns:
- the same instance for chaining
-
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
-