This page covers outbound notifications (Polpo sending you alerts). To chat with Polpo via WhatsApp — send commands, approve tasks, have conversations — see WhatsApp Gateway.
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
type | "whatsapp" | Yes | Channel type |
chatId | string | No | Default recipient JID (e.g. 39123456789@s.whatsapp.net for individuals, 120363...@g.us for groups) |
profileDir | string | No | Credential storage directory relative to .polpo/. Defaults to whatsapp-profiles/default |
Authentication
WhatsApp requires a one-time QR code scan to link the device:-
Run the login command:
- Scan the QR code displayed in the terminal with your phone (WhatsApp > Linked Devices > Link a Device)
-
Credentials are saved to
.polpo/whatsapp-profiles/default/and reused automatically on subsequent starts
polpo whatsapp status to check connection state, and polpo whatsapp logout to remove stored credentials.
Message Format
Messages are sent as plain text. Markdown formatting in notifications is stripped to plain text since WhatsApp does not support rich HTML.| Severity | Prefix |
|---|---|
info | [INFO] |
warning | [WARN] |
critical | [CRITICAL] |
Connectivity Test
Thetest() method checks whether the Baileys socket is currently connected and authenticated.
Limitations
- Text only — no file/image attachments (outbound notifications)
- Single device profile — one WhatsApp account per
profileDir - No official API — WhatsApp may change the web protocol at any time
- Rate limits — WhatsApp enforces undocumented rate limits; avoid high-frequency notifications