Autobot::Channels::WhatsAppChannel
Inherits Autobot::Channels::Channel < Reference < Object
WhatsApp channel that connects to a Node.js bridge.
The bridge uses @whiskeysockets/baileys to handle the WhatsApp Web protocol. Communication is via JSON messages over WebSocket.
Features:
- QR code authentication (displayed in bridge terminal)
- Message handling (text, voice notes as attachments)
- Connection state management
- Auto-reconnection with backoff
- Allow list for access control
Constants
Log = ::Log.for("channels.whatsapp")
RECONNECT_DELAY = 5
VOICE_MESSAGE = "[Voice Message]"
Constructors
Instance methods
send_message(message : Bus::OutboundMessage) : Nil
Send an outbound message through this channel.