Skip to main content
Wapi.js SDK provides a simaple and easy to use classes architecture to build message components. You can build message component of following types using the Wapi.js SDK:
In all the media messages which includes image, document, audio, video and sticker, either we will have to use the Id of media, or a publicly accessible hosted media Url.
With the rapidly changing whatsapp business platform features and offerings, we try our best to be in sync with the new features provided by the API. If you think we are missing upon any of the available type of message support. You can open a github issue here or direclty contact the maintainer of the project.

Text Message

Text message is the most basic message component that you can send to a user. You can create a text message using the following code:

Image Message

Image message is a message component that you can use to send images to a user. You can create a image message using the following code:

Video Message

Video message is a message component that you can use to send videos to a user. You can create a video message using the following code:

Audio Message

Audio message is a message component that you can use to send audio files to a user. You can create a audio message using the following code:

Document Message

Document message is a message component that you can use to send documents to a user. You can create a document message using the following code:

Location Message

Location message is a message component that you can use to send location to a user. You can create a location message using the following code:

Contact Message

Contact message is a message component that you can use to send contact details to a user. You can create a contact message using the following code:
In order to build a contact message, you need to use multiple classes provided to build, multiple components ofq the contact message. Now this has been done for ease of use and to provide a more structured way to build the contact message.

Reaction Message

Reaction message is a message component that you can use to send a reaction to a message. You can create a reaction message using the following code:

List Message

List message is a message component that you can use to send a list of items to a user. You can create a list message using the following code:

Button Interactive Message

Button message is a message component that you can use to send a button to a user. You can create a button message using the following code:

Product Message

Product message is a message component that you can use to send a product to a user. You can create a product message using the following code:

Product List Message

Product List message is a message component that you can use to send a list of products to a user. You can create a product list message using the following code:

Temaplate Message

Template message is a message component that you can use to send a template to a user. You can create a template message using the following code:
You need to get your template approved before sending a template message to users. You can check the template message approval documentation here.