botbuilder-adapter-tyntec-whatsapp
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Tyntec WhatsApp Adapter

A Microsoft Bot Framework adapter for handling connectivity with the WhatsApp channel in tyntec Conversations API.

It is a TypeScript library that allows your bots to use WhatsApp through the tyntec Conversations API. The adapter supports two-way (incoming and outgoing) messaging with templates, free-form and rich media.

Look how easy it is to use:

import axios from 'axios';
import { TyntecWhatsAppAdapter } from 'botbuilder-adapter-tyntec-whatsapp';

const axiosInstance = axios.create();

const adapter = new TyntecWhatsAppAdapter({
    axiosInstance,
    tyntecApikey: 'API_KEY'
});

// ... your bot and server initialization ...

server.post('/api/whatsapp/messages', async (req, res) => {
    await adapter.processActivity(req, res, (context) => myBot.run(context));
});

You can find the full quick start guide in the tyntec Docs Center.

Installation

Install Tyntec WhatsApp Adapter by running:

$ npm install botbuilder-adapter-tyntec-whatsapp

Features

At the moment, the adapter supports only:

  • receiving WhatsApp messages (processActivity),
  • sending WhatsApp messages (sendActivities) and
  • sending WhatsApp messages proactively (continueConversation).

See the API Reference in the docs/ directory for more information about how to use the library and what are the current limitations.

Support

If you are having issues, please let us know

License

This project is distributed under the MIT license.

Package Sidebar

Install

npm i botbuilder-adapter-tyntec-whatsapp

Weekly Downloads

1

Version

1.4.0

License

MIT

Unpacked Size

49.1 kB

Total Files

10

Last publish

Collaborators

  • dxheroes_dev