Skip to content

luridarmawan/whatsapp-bot-docker

Repository files navigation

Whatsapp Loader with Docker

Super lite whatsapp loader for chat bot development.

Usage

Build

docker build . -t mywhatsapp

# or, if you need more quicker wrapper, use 
docker build . -t mywhatsapp -f Dockerfile-quick

Run

docker run --rm -it mywhatsapp

Compose

docker-compose up --build

Configuration

{
  "appconfig": {
    "botName": "ExampleBot",
    "phoneNumber": "6281122334455",
    "token": "0000",
    "clientId": 0,
    "debug": true,
    "headless": true,
    "isGroupReply": false,
    "downloadMedia": false,
    "replyUnreadMsg": true,
    "CustomInjectionFolder": "",
    "webhook": "",
    "outgoingQueue": "",
    "notificationUrl": ""
  },
  "blocked": [
    ""
  ]
}
Key Description Example
botName Your Bot Name SuperSmartBot
phoneNumber Whatsapp number in international format, without + sign. 62812345678
token reserved
clientId reserved
debug verbose debug information false
headless It can be used to automate things that normally performed manually in the browser, such as submitting forms, UI testing, keyboard input, or capturing a timeline trace to diagnose performance. true
isGroupReply Enabling chat bots in groups false
downloadMedia Download media sent by user false
replyUnreadMsg Replay all unread messages false
webhook API endpoint that will handle all incoming message. Read API Doc.
ex: https://yourdomain/api/handler
outgoingQueue API endpoint that periodically fetch message data to be sent.
notificationUrl API endpoint that will handle all notification: Scan QR Code, Exit, etc

You can directly setup configuration from parameters in command line.

./carik-loader --botName=YourCustomBot --phoneNumber=6211111111

Resource


Carik Bot



📃 Legal

This library is in no way affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or any of its affiliates or subsidiaries. This is an independent and unofficial software. Use at your own risk. Do not spam people with this. We hold no liability for your use of this tool, in fact, depending on how you use this library, you'll be in violation of WhatsApp's Terms of Service. We discourage any stalkerware, bulk or automated messaging usage.