All Projects → wppconnect-team → wppconnect-server

wppconnect-team / wppconnect-server

Licence: Apache-2.0, Unknown licenses found Licenses found Apache-2.0 LICENSE Unknown license-checker-config.json
Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wppconnect-server

Whatsapp Web.js
A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
Stars: ✭ 4,103 (+1314.83%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot, whatsapp-api
tithiwa
Automate Web WhatsApp with selenium in python.
Stars: ✭ 17 (-94.14%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot, whatsapp-api
whatsapp-http-api
WhatsApp HTTP API that you can configure in a click!
Stars: ✭ 229 (-21.03%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot, whatsapp-api
python-automated-bulk-whatsapp-messages
It is a python script to send automated bulk WhatsApp messages to multiple recipients from an excel sheet at once.
Stars: ✭ 56 (-80.69%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot
superchats
SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp
Stars: ✭ 100 (-65.52%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-api
wappdriver
Wondering how to send WhatsApp messages using Python using only 3 lines of code? You have come to the right place!
Stars: ✭ 40 (-86.21%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot
PedeWhats
Projeto "Pede Whats", para solicitação de diversos tipos de comidas através do Whatsapp diretamente para o restaurante!
Stars: ✭ 18 (-93.79%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-api
waio
Is a pretty simple and fully asynchronous framework for WhatsApp Business API written in Python 3.7 with asyncio and aiohttp.
Stars: ✭ 18 (-93.79%)
Mutual labels:  whatsapp, whatsapp-bot, whatsapp-api
Venom
Venom is the most complete javascript library for Whatsapp, 100% Open Source.
Stars: ✭ 3,457 (+1092.07%)
Mutual labels:  whatsapp, whatsapp-bot, whatsapp-api
whatsapp-bot
Piyobot adalah whatsapp bot pintar
Stars: ✭ 124 (-57.24%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot
whatsapp-bot
whatsapp bot build with nodejs
Stars: ✭ 62 (-78.62%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot
wppconnect-php-client
Um simples cliente PHP que proporciona acesso fácil aos endpoints do WPPConnect Server.
Stars: ✭ 29 (-90%)
Mutual labels:  whatsapp, wppconnect, wppconnect-server
WhatsappWeb4j
Standalone fully-featured Whatsapp Multi Device Web API for Java and Kotlin
Stars: ✭ 198 (-31.72%)
Mutual labels:  whatsapp-web, whatsapp-bot, whatsapp-api
whatsapp-chatbot-1c-example
Внешняя обработка для программы 1С:Предприятие, которая демонстрирует реализацию простого чат-бота для мессенджера WhatsApp.
Stars: ✭ 13 (-95.52%)
Mutual labels:  whatsapp, whatsapp-bot, whatsapp-api
whatsapp-api-client
This library helps you easily create a javascript application with Whatsapp support
Stars: ✭ 39 (-86.55%)
Mutual labels:  whatsapp, whatsapp-bot, whatsapp-api
whatsapp-bot
This is a Node.js console app containing Whatsapp handler using reactive methods to response messages as chatbot. Simple but useful project to start developing a complex NON-OFFICIAL Whatsapp chatbots.
Stars: ✭ 33 (-88.62%)
Mutual labels:  whatsapp, whatsapp-web, whatsapp-bot
Whatsapp-Botto-Void
A fully Object Oriented WhatsApp bot built with TypeScript
Stars: ✭ 64 (-77.93%)
Mutual labels:  whatsapp, whatsapp-bot
whatabomb
A whatsapp bombing GUI Script
Stars: ✭ 84 (-71.03%)
Mutual labels:  whatsapp, whatsapp-web
Whatsapp-Group-Contacts-Scraper
How to scrap whatsapp group contacts from https://web.whatsapp.com/
Stars: ✭ 65 (-77.59%)
Mutual labels:  whatsapp, whatsapp-web
Whatsapp Web Reveng
Reverse engineering WhatsApp Web.
Stars: ✭ 5,320 (+1734.48%)
Mutual labels:  whatsapp, whatsapp-web

WPPConnect Team

WPPConnect Server

npm version Downloads Average time to resolve an issue Percentage of issues still open Build Status Build release-it

Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.

  • Javascript ES6
  • NodeJS
  • Restfull

Our online channels

Discord Telegram Group WhatsApp Group YouTube

Documentations

Access our documentation on postman

Access our documentation on Swagger

Or Swagger UI in your server. Acess router: "IP:PORT/api-docs"

Features

Multiple Sessions
Send text, image, video and docs
Get contacts list
Receive messages
Open/Close Session
Change Profile/Username
Create Group
Join Group by Invite Code
Webhook

Libraries Used

  • WPPConnect
  • Axios
  • Bcrypt
  • Cors
  • Dotenv
  • Express
  • Nodemon
  • SocketIO

Installation

Install the dependencies and start the server.

yarn install
//or
npm install

Install puppeteer dependencies:

sudo apt-get install -y libxshmfence-dev libgbm-dev wget unzip fontconfig locales 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

Install google chrome

wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo apt-get update

sudo apt-get install libappindicator1

sudo dpkg -i google-chrome-stable_current_amd64.deb

Run Server

yarn dev

Build Server

yarn build

Configuration

This server use config.json file to define some options, default values are:

{
  /* secret key to genereta access token */
  "secretKey": "THISISMYSECURETOKEN",
  "host": "http://localhost",
  "port": "21465",
  // create userDataDir for each puppeteer instance for working with Multi Device
  "customUserDataDir": "./userDataDir/",
  // starts all sessions when starting the server.
  "startAllSession": true,
  // sets the maximum global listeners. 0 = infinity.
  "maxListeners": 15,
  "webhook": {
    "url": null,
    // automatically downloads files to upload to the webhook
    "autoDownload": true,
    //marks messages as read when the webhook returns ok
    "readMessage": false,
    //sends all unread messages to the webhook when the server starts
    "allUnreadOnStart": true
  },
  //functionality that archives conversations, runs when the server starts
  "archive": {
    "enable": true,
    //maximum interval between filings.
    "waitTime": 10,
    "daysToArchive": 45
  },
  "log": {
    "level": "error",
    "logger": [ "console", "file" ]
  },
  "createOptions": {
    "browserArgs": ["--no-sandbox"]
  }
}

Secret Key

Your secretKey is inside the config.json file. You must change the default value to one that only you know.

Generate Token

To generate an access token, you must use your SECRET_KEY.

Using the route:

  curl -X POST --location "http://localhost:21465/api/mySession/eUsouSeCreTo/generate-token"

Response:

{
  "status": "Success",
  "session": "mySession",
  "token": "$2b$10$duQ5YYV6fojn5qFiFv.aEuY32_SnHgcmxdfxohnjG4EHJ5_Z6QWhe",
  "full": "wppconnect:$2b$10$duQ5YYV6fojn5qFiFv.aEuY32_SnHgcmxdfxohnjG4EHJ5_Z6QWhe"
}

Using Token

Save the value of the "full" response. Then use this value to call the routes.

Examples

#Starting Session
# /api/:session/start-session

curl -X POST --location "http://localhost:21465/api/mySession/start-session" \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer \$2b\$10\$JcHd97xHN6ErBuiLd7Yu4.r6McvOvEZZDQTQwev2MRK_zQObUZZ9C"
#Get QrCode
# /api/:session/start-session
# when the session is starting if the method is called again it will return the base64 qrCode

curl -X POST --location "http://localhost:21465/api/mySession/start-session" \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer \$2b\$10\$JcHd97xHN6ErBuiLd7Yu4.r6McvOvEZZDQTQwev2MRK_zQObUZZ9C"
#Send Message
# /api/:session/send-message
curl -X POST --location "http://localhost:21465/api/mySession/send-message" \
    -H "Content-Type: application/json; charset=utf-8" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer \$2b\$10\$8aQFQxnWREtBEMZK_iHMe.u7NeoNkjL7s6NYai_83Pb31Ycss6Igm" \
    -d "{
          \"phone\": \"5511982743910\",
          \"message\": \"*Abner* Rodrigues\"
        }"

See the routes file for all the routes. here and HTTP file.

Swagger UI

Swagger ui can be found at /api-docs

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].