Building Message Components
Build message components with ease using the Wapi.js SDK
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:
- Text Message
- Image Message
- Video Message
- Audio Message
- Document Message
- Location Message
- Contact Message
- Reply Message
- Reaction Message
- List Message
- QuickReply ButtonMessage
- Button Message
- Product Message
- Product List Message
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:
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:
Was this page helpful?