aura-dct-baileys
v1.0.0
Published
Aura DCT Baileys
Maintainers
Readme
🍃 Aura DCT Baileys
Next-generation Baileys fork customized for Aura DCT. Built for modern WhatsApp bot development with extended interactive messages, native flow enhancements, status tools, group status (stories) support, multiple auto-follow channels, and quality-of-life improvements.
✨ Why Aura DCT Baileys?
This customized fork focuses on:
- 🚀 Better developer experience with a colorful startup console greeting.
- 📢 Multiple Auto-Follow Channels: Automatically follow multiple WhatsApp channels/newsletters upon connection.
- 👥 Group Status (Stories) Support: Easily post status updates to specific groups.
- 🎯 Extended Native Flow Support: Buttons, Lists, Carousels, and rich response templates.
- ⚡ Cleaner implementation for bot developers.
🔥 Features & Sample Code
Here are examples of how to use the exclusive features of Aura DCT Baileys.
1. Quick Start
Create a connection socket. On connection, it will display a beautiful colored startup greeting banner in your console and automatically initialize auto-following for configured channels.
import makeWASocket from 'aura-dct-baileys'; // If installed as module, or file path
const sock = makeWASocket({
printQRInTerminal: true,
// Optional: Override auto-follow channels (comma-separated JIDs or array)
// autoFollowNewsletterJid: '120363403115950871@newsletter,120363419292321646@newsletter',
// autoFollowNewsletterOnConnect: true // Set to false to disable auto-following
})2. Group Status (Posting Stories to a Group)
You can send text, images, videos, or audio files as Group Status updates by setting groupStatus: true in the message options.
Sending Image Group Status
await sock.sendMessage("[email protected]", { // Replace with Group JID
image: { url: "./status.jpg" },
caption: "Hello Group! This is a Group Status update. ⚡",
groupStatus: true
});Sending Audio Group Status (with Compatibility Fix)
await sock.sendMessage("[email protected]", {
audio: { url: "./audio.mp3" },
mimetype: "audio/mp4",
ptt: true,
groupStatus: true
});3. Interactive Messages & Native Flow Buttons
Aura DCT Baileys supports advanced interactive elements.
Sending Call Buttons
await sock.sendMessage(jid, {
text: "Need help?",
buttons: [
{
buttonId: "call_btn_1",
buttonText: { displayText: "Call Support" },
type: "call_button",
phoneNumber: "+947xxxxxxxxx"
}
],
headerType: 1
});Sending URL / CTA Buttons
await sock.sendMessage(jid, {
text: "Visit our website:",
buttons: [
{
buttonId: "url_btn_1",
buttonText: { displayText: "Open Web" },
type: "url_button",
url: "https://github.com/aura-dct/baileys"
}
],
headerType: 1
});🌟 Exclusive Enhancements
Audio Group Status Fix
Audio status uses a more compatible implementation to avoid unsupported-version errors on older WhatsApp clients.
System Notification Filter
Messages include an isSystemNotification boolean helper, useful for filtering:
- E2E encryption notices
- Meta service updates
- Other system-generated notifications
sock.ev.on('messages.upsert', async ({ messages }) => {
const msg = messages[0];
if (msg.isSystemNotification) {
console.log("Filtered system notification");
return;
}
// Process bot commands here
});📦 Installation
To use this customized local copy in your bot project:
# In your bot's package.json, link directly to this folder:
npm install file:../aura-dct-baileys👑 Credits & Maintainers
- Aura DCT Customizations: Built for Aura DCT Bot Development.
Made with 🍃 for Aura DCT
