library to interact with Whatsapp's Cloud API

Overview

Whatsapp Cloud JS

Whatsapp Cloud JS is a library to allows you to interact with Whatsapp's Cloud API

🚀 Getting started

import { Client } from 'whatsapp-cloud.js'

const client = new Client({
  auth: {
    accessToken: process.env.ACCESS_TOKEN,
    phoneNumberID: process.env.PHONE_NUMBER_ID,
  },
});

client.on("message", async (message) => {
    await client.messages.sendTextMessage(
        `Did you said "${message.text}"?`,
        message.from
    );
});

client.initializeWebhook(3000).then(() => {
  console.log("Ready!");
});

📋 TODO

[x] - Ability to send text messages
[x] - Finish HTTP server to receive Whatsapp events
[] - Ability to send reply buttons
[] - Ability to send document messages

You might also like...

HTML5 audio or video player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

One file. Any browser. Same UI. Author: John Dyer http://j.hn/ Website: http://mediaelementjs.com/ License: MIT Meaning: Use everywhere, keep copyrigh

Dec 27, 2022

HTML5 audio or video player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

One file. Any browser. Same UI. Author: John Dyer http://j.hn/ Website: http://mediaelementjs.com/ License: MIT Meaning: Use everywhere, keep copyrigh

Jan 8, 2023

Easiest medium to use buttons with any discord API wrapper

Easiest medium to use buttons with any discord API wrapper

Discord Buttons Plugin Easiest medium to use buttons with any discord API wrapper /* Generate 1st Button with "Yes" lable on it */ const button1

May 14, 2022

Spotify 2.0 com NextJS 12 - MIddleware, TailwindCSS, Spotify API, NextAuth, Recoil

Spotify 2.0 com NextJS 12 - MIddleware, TailwindCSS, Spotify API, NextAuth, Recoil

Spotify Clone A spotify clone made with NextJS 12, TailwindCSS, NextAuth, Spotify API, Recoil Lessons Learned Setting up NextJS with Tailwind. NextAut

Mar 14, 2022

Spotify clone using Next.js, Spotify API, Tailwind, NextAuth, Recoil

Next.js + Tailwind CSS Example This example shows how to use Tailwind CSS (v2.2) with Next.js. It follows the steps outlined in the official Tailwind

Dec 25, 2021

Web Application that represents a music player using the spotify API, React, JS, CSS, HTML, nodeJS, Firebase, material-ui, JSON and other technologies. Made by Yohan Hmaiti

Web Application that represents a music player using the spotify API, React, JS, CSS, HTML,  nodeJS, Firebase, material-ui, JSON and other technologies. Made by Yohan Hmaiti

Web Application that represents a music player using the spotify API, React, JS, CSS, HTML, nodeJS, Firebase, material-ui, JSON and other technologies. Made by Yohan Hmaiti

Jan 8, 2022

A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

Jun 28, 2022

BOT-TABELA-FIPE - BOT que busca na API da FIPE todas as marcas e seus respectivos modelos e anos.

BOT-TABELA-FIPE BOT que busca na API da FIPE todas as marcas e seus respectivos modelos e anos. O BOT trabalha de maneira assíncrona, assim, torna mui

Jan 3, 2022

A review aggregator web application that allows users to review albums by leveraging the Spotify Web API.

A review aggregator web application that allows users to review albums by leveraging the Spotify Web API.

Reviewify Summary Reviewify is a review aggregator platform that leverages the Spotify Web API. It allows users to: Login with their Spotify accounts

Oct 7, 2022
Releases(1.0.4)
  • 1.0.4(Jun 30, 2022)

  • 1.0.3(Jun 17, 2022)

    What's Changed

    • fix missing import by @SrHenry in https://github.com/ThallesP/whatsapp-cloud.js/pull/1

    New Contributors

    • @SrHenry made their first contribution in https://github.com/ThallesP/whatsapp-cloud.js/pull/1

    Full Changelog: https://github.com/ThallesP/whatsapp-cloud.js/commits/1.0.3

    Source code(tar.gz)
    Source code(zip)
Owner
Thalles Passos
Aoooba! Eu me chamo Thalles, e seja bem-vindo ao meu perfil. Estou focado no momento em Typescript com NodeJS, Express, NestJS e Swagger.
Thalles Passos
dscbots.js is a Node.js module that allows you to interact with the Discord API without any complications.

Credits Goodsie - Helping me with the websocketmanager About dscbots.js is a Node.js module that allows you to interact with the Discord API without a

Scarlot Spy 0 Nov 29, 2022
Unofficial javascript wrapper to WhatsApp Cloud API.

heyooh Unofficial javascript wrapper to WhatsApp Cloud API. Its the javascript port for heyoo Features supported Sending messages Sending Media (image

JS Hub Zimbabwe 24 Dec 30, 2022
Use Discord like cloud storage.

DISCORD-DRIVE-CLIENT Use Discord like cloud storage. Release TODO: Screenshot list Release TODO: Release Coming soon.. Warning Abusing this client can

Damob 2 Mar 22, 2022
Simple WhatsApp MD BOT. Get a API key from ZEN API

ALIEN ALFA-MD Contact Me: ❗❗FORK THIS BEFORE PROCEEDING Use This Button To Fork Now Scan QR Code For Session Change Session In Github ⚠️ Session Chang

TOXIC ALIEN 46 Dec 28, 2022
A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.

SoundJS SoundJS is a library to make working with audio on the web easier. It provides a consistent API for playing audio in different browsers, inclu

CreateJS 4.3k Dec 31, 2022
A Node JS Express/Serverless demo application that creates a slideshow video using the Pexels image library and Shotstack video editing API.

Shotstack Pexels Slideshow Video Demo This project demonstrates how to use the Shotstack cloud video editing API to create a video using an HTML form

Shotstack 25 Dec 9, 2022
A simple library for using the JavaScript Full Screen API.

BigScreen A simple library for using the JavaScript Fullscreen API. Why should I use it? BigScreen makes it easy to use full screen on your site or in

Brad Dougherty 712 Dec 22, 2022
Vio-MD is multi-device whatsapp bot using library @adiwajshing/baileys and example bot of Violetics API

Vio Multi Device WhatsApp Bot Use at your own risk! Build with Baileys and JavaScript's native Map class ( as a command handler ), using https://viole

Violetics 4 May 31, 2022
Telegram-API Library Written in TypeScript

TeleLib a node js Telegram Wrapper written in TypeScript. installation yarn add @telelib/telelib or npm i --save @telelib/telelib how to use create a

MohammadMahdi Afshar 0 Jul 27, 2022
Rule YouTube, Soundcloud and Vimeo player with one API

Polyplayer Polyplayer allows you to rule YouTube's, Soundcloud's and Vimeo's player using one API. Features Playing, pausing, stopping Seek to absolut

Marius 41 Sep 24, 2022