dula-baileys
v2.0.0
Published
▶ ●───ᴡʜᴀᴛꜱᴀᴘᴘ ᴀᴘɪ ᴍᴏᴅɪꜰɪᴄᴀᴛɪᴏɴ ʙʏ ᴅᴛᴢ ᴅᴜʟᴀ────▶ ●
Maintainers
Readme
⚡ Baileys-Dula – Supercharged WhatsApp API
Baileys-Dula is a powerful WhatsApp Web API built for WhatsApp bots, automation systems, and AI messaging.
🚀 Fast • 🔒 Secure • 🤖 Bot-Friendly • 🔥 Red Cyber Theme
❓ WHY BAILEYS-DULA?
| Feature | Description | | ---------------- | --------------------------------- | | ⚡ Lightning Fast | Optimized socket & event handling | | 🛡️ Secure | Updated auth & pairing logic | | 🤖 Bot Ready | Made for WhatsApp bot devs | | 🎛️ Interactive | Buttons, lists & rich media | | 🔄 Active | Regular updates & fixes |
📌 IMPORTANT NOTE
⚠️ This project is based on WhiskeySockets / Baileys
Baileys-Dula adds:
- Custom pairing codes
- AI message icons
- Cleaner logs
- Better bot compatibility
Original repo: 👉 https://github.com/WhiskeySockets/Baileys
💫 INSTALLATION
📦 package.json
"dependencies": {
"baileys-dula": "*"
}⚙️ npm
npm install baileys-dula🔌 IMPORT
ESM
import makeWASocket from 'baileys-dula'CommonJS
const { default: makeWASocket } = require('baileys-dula')🔗 CONNECT TO WHATSAPP
📱 QR Code Login
const makeWASocket = require('baileys-dula').default
const sock = makeWASocket({
browser: ['Ubuntu', 'Chrome', '20.0.1'],
printQRInTerminal: true
})📞 Pair With Number
const {
default: makeWASocket,
fetchLatestWAWebVersion
} = require('baileys-dula')
const sock = makeWASocket({
printQRInTerminal: false,
version: fetchLatestWAWebVersion()
})
const code = await sock.requestPairingCode("94XXXXXXXXX")
console.log("Pairing Code:", code)🎛️ INTERACTIVE BUTTONS
await sock.sendMessage(id, {
text: "Choose an option",
footer: "Baileys-Dula",
buttons: [
{ buttonId: "menu", buttonText: { displayText: "Menu" }, type: 1 },
{ buttonId: "owner", buttonText: { displayText: "Owner" }, type: 1 }
],
headerType: 1
})🤖 AI MESSAGE ICON
await sock.sendMessage(id, {
text: "Hello! I'm an AI response",
ai: true
})🔐 CUSTOM PAIRING CODE
const code = await sock.requestPairingCode(
phoneNumber,
"DULABOT1" // 8 characters
)🛠️ QUICK START
1️⃣ Install 2️⃣ Import 3️⃣ Connect WhatsApp 4️⃣ Build your bot
🐛 ISSUES & SUPPORT
Found a bug or want a feature? Open an issue or contribute 💙
