@thehackingguard/mahiru-baileys
v1.0.2
Published
Custom Baileys WhatsApp API
Maintainers
Readme
🛡️✨ @thehackingguard/mahiru-baileys ✨🛡️
Baileys-based WhatsApp library — refined DX, and extra features, (2026 Edition).
✨ What is this?
mahiru-baileys is a fork-style distribution built on top of Baileys (WhiskeySockets), focused on:
- cleaner developer experience (DX)
- additional message features (album, buttons, polls, etc.)
- newsletter/channel helpers
- pairing-code helpers
- small quality-of-life improvements
Built on top of WhiskeySockets/Baileys. Core protocol logic credits go to the original Baileys maintainers.
📦 Install
Normal install
npm i @thehackingguard/mahiru-baileysUse as a drop-in replacement (alias)
Replace the Baileys dependency with this package:
For @whiskeysockets/baileys:
{
"dependencies": {
"@whiskeysockets/baileys": "npm:@thehackingguard/mahiru-baileys"
}
}Terminal alias install:
npm i @whiskeysockets/baileys@npm:@thehackingguard/mahiru-baileys⭐ Feature highlights
| Feature | Notes |
|---|---|
| 📣 Newsletter/Channel helpers | create/update/react & utilities |
| 🖼️ Album messages | send multiple media as an album |
| 🖱️ Interactive messages | buttons & quick replies |
| 👤 LID addressing | works with @lid flow |
| 🔐 Pairing code | custom alphanumeric pairing codes |
| 📷 HD profile pic upload | upload full-size pfp (no crop) |
| 🧰 DX tweaks | reduced log noise & cleaner output |
🔐 Pairing code
Default pairing key in this build: SHINNAMD
You can override it by passing your own key.
const code = await sock.requestPairingCode("62xxxxxxxxxx", "SHINNAMD")
console.log("Pairing Code:", code)The console banner printed by the library also mentions the current default pairing key.
📬 Newsletter control
// Create a newsletter
await sock.newsletterCreate("TheHackingGuard Updates")
// Update description
await sock.newsletterUpdateDescription(
"mahirubaileys@newsletter",
"Whats Upp"
)
// React to a channel message
await sock.newsletterReactMessage(
"mahirubaileys@newsletter",
"175",
"🔥"
)🖼️ Send album (grouped media)
const media = [
{ image: { url: "https://example.com/pic1.jpg" } },
{ video: { url: "https://example.com/clip.mp4" } }
]
await sock.sendMessage(id, { album: media, caption: "Memories 💫" })🧩 Notes & configuration
If you enable “auto-follow newsletter on connect” in your build, keep it pointing to your own newsletter JID and document it clearly for users.
📄 License
This package is released under the MIT License.
- See the local file:
LICENSE - Baileys (WhiskeySockets) is also MIT-licensed, and this distribution keeps the original license notice.
You may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, provided that the copyright notice and permission notice are included in all copies or substantial portions of the Software.
🐞 Bug report / contact
🙌 Credits
- WhiskeySockets/Baileys — original core
- @thehackingguard — maintenance & distribution of this fork package
