@x-spacy/message-builder
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Message Builder

Description

A fully typed message builder created using TypeScript. A better way to creating messages for consume the WhatsApp Business API.

Installation

npm install @x-spacy/message-builder

Usage

import { MessageBuilder, MessageType } from '@x-spacy/message-builder';

const message = MessageBuilder.newBuilder()
  .to('000000000000')
  .type(MessageType.TEXT)
  .text((builder) => {
    builder.body('Hello world!');
  })
  .build();

License

X-Spacy LTDA is MIT Licensed.

Package Sidebar

Install

npm i @x-spacy/message-builder

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

126 kB

Total Files

52

Last publish

Collaborators

  • gutyerrez