The WhatsAppAPI.blockUser return value
The client's contact info
The user's phone number (wa_id), with fallback to parent_user_id and user_id.
The messages object
OptionalnameThe user's full name
Utility function for offloading code from the main thread, useful for long running tasks such as AI generation
The bot's phoneID
The raw data from the API
Mark the received message as read, and optionally display a typing indicator
Optionalindicator: ClientTypingIndicatorsThe type of reply indicator
The WhatsAppAPI.markAsRead return value
A client recipient identifier, provided as a helper for replying messages using sendMessage.
A method to easily reply to the user who sent the message
The message to send as a reply
Optionalcontext: booleanWether to mention the current message, defaults to false
Optionalbiz_opaque_callback_data: stringAn arbitrary 512B string, useful for tracking
The WhatsAppAPI.sendMessage return value
The WhatsAppAPI instance that emitted the event
Block the user who sent the message