HUB
Sign inSign up

rosyiid1440/wa-gateway-multidevice

By rosyiid1440

โ€ขUpdated over 1 year ago

Image
0

540

rosyiid1440/wa-gateway-multidevice repository overview

โ ๐Ÿ“ฆ WhatsApp Gateway Multi-Device - Dockerized

WhatsApp Gateway Multi-Device is a Node.js-based solution that allows you to send and receive WhatsApp messages via a REST API. It's ideal for building chatbots, notification systems, and business automation tools using the multi-device WhatsApp protocol.


โ ๐Ÿš€ Features

  • ๐Ÿ” Multi-account support (multi-session)
  • ๐Ÿ“ค Send messages to personal chats or groups
  • ๐Ÿ–ผ๏ธ Supports sending media (images, PDFs, documents)
  • ๐Ÿ“ฅ Receive messages & webhook callback support
  • ๐Ÿงพ Save chat history and downloaded media
  • ๐Ÿ“ฆ Persistent sessions across container restarts
  • ๐Ÿงฑ Easy deployment with Docker or Docker Compose

โ ๐Ÿณ Docker Compose Example

services:
  whatsapp-gateway:
    image: rosyiid1440/wa-gateway-multidevice:latest
    
    container_name: wa-gateway
    restart: unless-stopped
    
    ports:
      - "3000:3000"
      
    environment:
      - WEB_USERNAME=admin
      - WEB_PASSWORD=ganti_password_ini
      - SESSION_SECRET=ganti_dengan_kunci_rahasia_yang_panjang
      - MASTER_API_KEY=kunci-gateway-anda-yang-valid
      - API_KEY=super-secret-key-defaul
      
    volumes:
      - ./sessions:/usr/src/app/dist/sessions
      - ./chat_history:/usr/src/app/dist/chat_history
      - ./media_downloads:/usr/src/app/dist/media_downloads

๐Ÿ“‚ Volumes ensure that your session data, message history, and media files are stored persistently, even if the container is removed or restarted.


โ ๐Ÿ”— Main API Endpoints (default port: 3000) - url endpoin http://{base_url}/api/docs

  • POST /send-message โ€“ Send text message
  • POST /send-media โ€“ Send media (image, PDF, etc.)
  • GET /sessions โ€“ View active WhatsApp sessions
  • POST /logout โ€“ Logout from a session
  • POST /webhook โ€“ Setup webhook for incoming messages

โ ๐Ÿ“ Volume Mapping

Host FolderContainer PathDescription
./sessions/usr/src/app/sessionsStores WhatsApp session data
./chat_history/usr/src/app/chat_historyStores received messages
./media_downloads/usr/src/app/media_downloadsStores downloaded media files

โ ๐Ÿ› ๏ธ Manual Docker Run

docker build -t rosyiid1440/wa-gateway-multidevice .

docker run -d -p 3000:3000 \
  -v $(pwd)/sessions:/usr/src/app/sessions \
  -v $(pwd)/chat_history:/usr/src/app/chat_history \
  -v $(pwd)/media_downloads:/usr/src/app/media_downloads \
  --name wa-gateway \
  --restart unless-stopped \
  rosyiid1440/wa-gateway-multidevice

โ ๐Ÿ“„ License

MIT License


โญ Feel free to star this project and support its development!

Tag summary
Recent tags
Content type
Image
Digest
sha256:d5e8464a2โ€ฆ
Size
103.8 MB
Last updated
over 1 year ago
docker pull rosyiid1440/wa-gateway-multidevice:latest