All Projects → felipeDS91 → Whatsapp Api

felipeDS91 / Whatsapp Api

Licence: mit
Rest API to send messages through whatsapp

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Whatsapp Api

Whatsapp Node Api
A Simple NodeJS API Wrapper for WhatsApp
Stars: ✭ 81 (-27.68%)
Mutual labels:  bot, heroku, whatsapp
Whatsapp Framework
⚗️Whatsapp python api
Stars: ✭ 945 (+743.75%)
Mutual labels:  bot, whatsapp
Sulla
👩🏻‍🔬 Javascript Whatsapp api library for chatbots
Stars: ✭ 844 (+653.57%)
Mutual labels:  bot, whatsapp
Wappbot
Automatic answering of incoming messages by means of javascript and using Whatsapp Web
Stars: ✭ 55 (-50.89%)
Mutual labels:  bot, whatsapp
Wbot
A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 14th, 2020
Stars: ✭ 638 (+469.64%)
Mutual labels:  bot, whatsapp
Me bot
Build a bot that speaks like you!
Stars: ✭ 641 (+472.32%)
Mutual labels:  bot, whatsapp
Chatwoot
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬
Stars: ✭ 11,554 (+10216.07%)
Mutual labels:  heroku, whatsapp
Anydlbot
An Open Source GPLv3 All-In-One Telegram Bot
Stars: ✭ 236 (+110.71%)
Mutual labels:  bot, heroku
Wasapbot
[abandoned ❗] Simple WhatsApp bot written in PHP, respond to private & group messages. Uses Chat-API
Stars: ✭ 89 (-20.54%)
Mutual labels:  bot, whatsapp
Jonsnow
App Store/Google Play review watcher, deliver new reviews to slack channel
Stars: ✭ 65 (-41.96%)
Mutual labels:  bot, heroku
Whatsapp Web Bot
Whatsapp Web Bot - Example of Bot for use on Whatsapp Web (on Chrome)
Stars: ✭ 450 (+301.79%)
Mutual labels:  bot, whatsapp
Wa Automate Nodejs
💬 🤖 The most advanced NodeJS WhatsApp library for chatbots with advanced features. Be sure to 🌟 this repository for updates!
Stars: ✭ 1,326 (+1083.93%)
Mutual labels:  bot, whatsapp
Slack Meme
A Meme Bot for Slack.
Stars: ✭ 322 (+187.5%)
Mutual labels:  bot, heroku
Notify
A dead simple Go library for sending notifications to various messaging services.
Stars: ✭ 727 (+549.11%)
Mutual labels:  bot, whatsapp
Line Bot Tutorial
line-bot-tutorial use python flask
Stars: ✭ 267 (+138.39%)
Mutual labels:  bot, heroku
Modmail
A feature rich discord Modmail bot
Stars: ✭ 957 (+754.46%)
Mutual labels:  bot, heroku
Whatsapp Assistant Bot
A personal WhatsApp assistant bot that will help you search anything on the web (Google, Images, Google Maps)
Stars: ✭ 198 (+76.79%)
Mutual labels:  bot, whatsapp
Venom
Venom is the most complete javascript library for Whatsapp, 100% Open Source.
Stars: ✭ 3,457 (+2986.61%)
Mutual labels:  bot, whatsapp
Webwhatsappbot
Core to automatize whatsapp - working 11/2018
Stars: ✭ 59 (-47.32%)
Mutual labels:  bot, whatsapp
Steem Fossbot Voter
A curation bot built for the Steemit social media platform, decides which posts to vote for and casts vote on behalf of a registered user
Stars: ✭ 92 (-17.86%)
Mutual labels:  bot, heroku

Logo

API to send messages through WhatsApp

GitHub top language Made by Repository size GitHub last commit Repository issues GitHub

About the project   |    Technologies   |    Getting started   |    How to contribute   |    License

Run in Insomnia

👨🏻‍💻 About the project

This API allow send messages using whatsapp through an API Rest. The project is separated by two main process, one for the API Rest and other responsible for check if there is new messages to send in the queue. Remember: This software is only for study purposes and you have to be careful to not be banned for sending spam using whatsapp. (Send spam through Whatsapp is illegal).

🚀 Technologies

Technologies that I used to develop this api

💻 Getting started

Import the Insomnia.json on Insomnia App or click on Run in Insomnia button

Requirements

Clone the project and access the folder

$ git clone https://github.com/felipeDS91/whatsapp-api.git && cd whatsapp-api

Follow the steps below

# Install the dependencies
$ yarn

# Creates a docker container or use your own mysql installation (changes the password)
$ docker run --name "whatsapp"  -e MYSQL_ROOT_PASSWORD="mysql_password" -p 3306:3306 -d mysql:5.7.30

# Creates a new mysql user (changes the username and password)
# To connect with mysql database you can use a tool like DBeaver for example
$ CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';

# Make a copy of '.env.example' to '.env'
# and set with YOUR environment variables
$ cp .env.example .env

# Run the migrations and seeds
$ yarn typeorm migration:run

# Run this command to start the server in development mode
$ yarn dev:server

# Or you can run separately the API/WhatsApp message client
$ yarn dev:api
$ yarn dev:whatsapp

# Default credentials:
# username: admin
# password: 123456

# Well done, project is started!

👨🏻‍💻 Endpoints

  • /sessions: Sign in to get the access token .
  • /message: Send message to the queue.
Admin routes
  • /users: Manage the access to the API.
  • /tokens: Return a qrCode image and also render this QrCode on command line prompt to be read using an whatsapp and record that number to send new messages.

😖 Troubleshooting

  • Paas hosting (Heroku): This project uses whatsapp-web.js package that uses Puppeter and it is based on chrome. So if you are getting some log like this "...loading shared libraries: libnss3.so: cannot open shared object file..." you will have to install a "Buildpack" in your app. To do it, you have to access the app on Heroku and go to the menu "Settings" --> "Buildpacks" --> "Add buildpack", fill out the Buildpack URL with "jontewks/puppeteer" and click in "Save changes" button. And after your next deploy, this buildpack to use puppeter will be installed with your app.

  • Installation of linux dependencies: sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget build-essential apt-transport-https libgbm-dev
    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
    sudo apt install git nodejs yarn

🤔 How to contribute

  • Make a fork of this repository
# Fork using GitHub official command line
# If you don't have the GitHub CLI, use the web site to do that.

$ gh repo fork felipeDS91/whatsapp-api
# Clone your fork
$ git clone your-fork-url && cd whatsapp-api

# Create a branch with your feature
$ git checkout -b my-feature

# Make the commit with your changes
$ git commit -m 'feat: My new feature'

# Send the code to your remote branch
$ git push origin my-feature

After your pull request is merged, you can delete your branch

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with 💜  by Felipe Douglas 👋 See my linkedin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].