Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

A copy of the upstream repo preserved in the state when I left the project.

License

Notifications You must be signed in to change notification settings

radekholy24/botbuilder-adapter-tyntec-whatsapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A copy of the upstream repo preserved in the state when I left the project.

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 69.2%
  • TypeScript 30.8%