ceaser-baileys
v3.5.4
Published
LordCeaser Baileys v1.0.2 - Cleanest WhatsApp API with Interactive Buttons, List Menus, GStatus Thumbnail Fix, Music/Video URL Import, Polls & More
Maintainers
Readme
No spam. No channel payloads. Just pure Baileys, fixed & enhanced.
🚀 What's New
- ✅ Fixed Banner: no more broken image, now uses a raw GitHub URL
- ✅ GStatus Thumbnail Fix: link previews with thumbnails now work in Status
- ✅ Music & Video URL Import Fixed: send audio/video directly from a URL without downloading
- ✅ Clean Code: all spam channel payloads removed permanently
- ✅ Jimp 1.6.0: fixed the
ResizeStrategy.BILINEARerror
📦 Installation
npm install ceaser-baileys⚡ Quick Start
const { default: makeWASocket, useMultiFileAuthState, DisconnectReason } = require('ceaser-baileys')
const { Boom } = require('@hapi/boom')
async function start() {
const { state, saveCreds } = await useMultiFileAuthState('session')
const sock = makeWASocket({ auth: state, printQRInTerminal: true })
sock.ev.on('creds.update', saveCreds)
sock.ev.on('connection.update', ({ connection, lastDisconnect }) => {
if (connection === 'close') {
const shouldReconnect =
new Boom(lastDisconnect?.error)?.output?.statusCode !== DisconnectReason.loggedOut
if (shouldReconnect) start()
}
})
sock.ev.on('messages.upsert', async ({ messages }) => {
const m = messages[0]
if (!m.message) return
const jid = m.key.remoteJid
const text = m.message.conversation || m.message.extendedTextMessage?.text
if (text === 'ping') await sock.sendMessage(jid, { text: 'pong 🏓' })
})
}
start()🔥 Cool Things You Can Do
1. 🎛️ Interactive Buttons
await sock.sendMessage(jid, {
text: 'Choose an option',
buttons: [
{ buttonId: 'id1', buttonText: { displayText: 'Option 1' }, type: 1 },
{ buttonId: 'id2', buttonText: { displayText: 'Option 2' }, type: 1 }
],
headerType: 1
})2. 📜 Interactive List Menu
await sock.sendMessage(jid, {
text: 'Pick from the menu',
buttonText: 'Open Menu',
sections: [{
title: 'Main Menu',
rows: [
{ title: '🎵 Music', rowId: 'music' },
{ title: '🎥 Video', rowId: 'video' },
{ title: '📊 Poll', rowId: 'poll' }
]
}]
})3. 📊 Polls & Voting
await sock.sendMessage(jid, {
poll: { name: 'Favorite Color?', values: ['Red', 'Blue', 'Green'], selectableCount: 1 }
})4. 🎵 Music & Video from URL
// Send music directly from a URL
await sock.sendMessage(jid, {
audio: { url: 'https://example.com/song.mp3' },
mimetype: 'audio/mpeg',
ptt: false
})
// Send video directly from a URL
await sock.sendMessage(jid, {
video: { url: 'https://example.com/video.mp4' },
caption: 'Check this out 🎥'
})5. 📸 Status with Link Preview
await sock.sendMessage('status@broadcast', {
text: 'https://www.npmjs.com/package/ceaser-baileys'
}, { statusJidList: [jid] })6. 👥 Group Management
await sock.groupCreate('My Group', [jid])
await sock.groupParticipantsUpdate(groupJid, [jid], 'promote')
await sock.groupInviteCode(groupJid)7. 📰 Newsletter & Channels
await sock.newsletterFollow('120363XXXXXXXXXX@newsletter')
await sock.newsletterUnfollow('120363XXXXXXXXXX@newsletter')8. 💬 More Powerful Features
- ✅ Messages: Text, Image, Video, Audio, Document, Sticker, Voice Note
- ✅ Interactive: Buttons, List Menus, Polls, Template Messages
- ✅ Media from URL: no need to download, send directly from a link
- ✅ Status: Text, Image, Video Status with link previews
- ✅ Groups: Create, Manage, Admin controls, Invite links, Participants
- ✅ Privacy: Presence (typing, recording, online), Read receipts
- ✅ Advanced: Edit message, Delete message, Reactions, Star message
- ✅ Auth: QR Code & Pairing Code login
🛠️ Fixes in this Fork
| Issue | Original Baileys | Ceaser Bailys | |---|---|---| | Spam Channel Payloads | ❌ Has spam links | ✅ Removed completely | | GStatus Thumbnail | ❌ Broken preview | ✅ Fixed with thumbnails | | Music URL Import | ❌ Fails to send | ✅ Direct URL works | | Video URL Import | ❌ Fails to send | ✅ Direct URL works | | Jimp Error | ❌ BILINEAR error | ✅ Jimp 1.6.0 | | Banner | ❌ Broken | ✅ Raw GitHub URL |
📱 Run on Termux
pkg update && pkg install nodejs git -y
npm install ceaser-baileys
node index.js📄 License
MIT © Lord Ceaser
Made with ❤️ for the Baileys community. Clean, Stable, Powerful.
