✨ @rexxhayanasi/elaina-bail
Custom WhatsApp library built upon Baileys — enhanced, modernized, and elegant ✨
📌 Overview
elaina-bail
is a refined version of the Baileys library with cleaner API usage, exclusive features like album messaging, newsletter controls, and full-size profile uploads — tailored for modern WhatsApp automation needs.
Update
+ improvements in reading ID @lid
📦 Installation
Via package.json
Fork Baileys (NPM)
@whiskeysockets/baileys
"dependencies": {
"@whiskeysockets/baileys": "npm:@rexxhayanasi/elaina-bail"
}
@adiwajsing/baileys
"dependencies": {
"@adiwajshing/baileys": "npm:@rexxhayanasi/elaina-bail"
}
Or via terminal
npm install elaina-bail@npm:@rexxhayanasi/elaina-bail
Importing (for those who don't fork another repository)
ESM
import makeWASocket from '@rexxhayanasi/elaina-bail'
CJS
const { default: makeWASocket } = require('@rexxhayanasi/elaina-bail')
🌟 Key Features
Category | Description |
---|---|
📢 Channels | Seamlessly send messages to WhatsApp Channels. |
🖱️ Buttons | Create interactive messages with button options and quick replies. |
🖼️ Albums | Send grouped images or videos as an album (carousel-like format). |
👤 LID Grouping | Handle group operations using the latest @lid addressing style. |
🤖 AI Message Style | Add a stylized “AI” icon to messages. |
📷 HD Profile Pics | Upload full-size profile pictures without cropping. |
🔐 Pairing Code | Generate custom alphanumeric pairing codes. |
🛠️ Dev Experience | Reduced noise from logs with optimized libsignal printouts. |
💡 Use Case Examples
js
// Create a newsletter
await sock.newsletterCreate("Elaina Updates");
// Change description
await sock.newsletterUpdateDescription("elaina@newsletter", "Fresh updates weekly");
// Send a reaction to a channel message
await sock.newsletterReactMessage("elaina@newsletter", "175", "🔥");
js
const buttons = [
{ buttonId: 'btn1', buttonText: { displayText: 'Click Me' }, type: 1 },
{ buttonId: 'btn2', buttonText: { displayText: 'Visit Site' }, type: 1 }
];
const msg = {
text: "Choose one:",
footer: "From Elaina with love 💜",
buttons,
headerType: 1
};
await sock.sendMessage(id, msg, { quoted: null });
js
const media = [
{ image: { url: "https://example.com/pic1.jpg" } },
{ video: { url: "https://example.com/clip.mp4" } }
];
await sock.sendMessage(id, { album: media, caption: "Memories 💫" }, { quoted: null });
js
const code = await sock.requestPairingCode("62xxxxxxxxxx", "ELAINA01");
console.log("Your Pairing Code:", code);
🐞 Found a Bug?
Please open an issue at elaina-bail GitHub Issues with details and reproduction steps.Please open an issue at elaina-bail GitHub Issues with details and reproduction steps.
or you can also contact the owner of Npm elaina-bail on WhatsApp using the link below
For all His grace and ease. - Parent
For your continued love, prayers, and support. - Nstar-Y / Nstar-bail
As an initial foundation and reference in the development of this system. - RexxHayanasi (Me)
The main developer of this project.
📚 Acknowledgement
Built on top of the WhiskeySockets/Baileys project. All original core logic credits go to their team. elaina-bail extends it with thoughtful UX and DX improvements.