lordceaser-baileys 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +162 -54
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,93 +1,201 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/lordceaser/lordceaser-baileys/main/banner.png" width="100%" alt="LordCeaser Baileys" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
5
|
# ⚡ LordCeaser Baileys
|
|
4
6
|
|
|
5
|
-
<
|
|
6
|
-
<img src="https://img.shields.io/npm/v/lordceaser-baileys?style=for-the-badge&color=25D366&label=VERSION" />
|
|
7
|
-
<img src="https://img.shields.io/npm/dm/lordceaser-baileys?style=for-the-badge&color=blue" />
|
|
8
|
-
<img src="https://img.shields.io/badge/MADE%20BY-LORD%20CEASER-black?style=for-the-badge" />
|
|
9
|
-
</p>
|
|
7
|
+
<div align="center">
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</p>
|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
**The Cleanest, Most Stable & Feature-Packed WhatsApp Web API for Node.js**
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
*No spam. No channel payloads. Just pure Baileys, fixed & enhanced.*
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
[📦 NPM](https://www.npmjs.com/package/lordceaser-baileys) • [🐛 Issues](https://github.com/lordceaser/lordceaser-baileys/issues) • [⭐ GitHub](https://github.com/lordceaser/lordceaser-baileys)
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
| :--- | :---: | :---: | :---: |
|
|
24
|
-
| Newsletter Media Upload | ❌ Broken | ⚠️ Partial | ✅ **Fixed** |
|
|
25
|
-
| Spam Channel Links | ❌ | ❌ Everywhere | ✅ **Zero Spam** |
|
|
26
|
-
| Interactive Messages | ❌ | ⚠️ | ✅ **Full Support** |
|
|
27
|
-
| Album / Carousel | ❌ | ❌ | ✅ **Yes** |
|
|
28
|
-
| Auto Reconnect | ⚠️ | ⚠️ | ✅ **Stable** |
|
|
29
|
-
| Maintained in 2026 | ❌ | ⚠️ | ✅ **Active** |
|
|
19
|
+
</div>
|
|
30
20
|
|
|
31
21
|
---
|
|
32
22
|
|
|
33
|
-
|
|
23
|
+
## 🚀 What's New in v1.0.2?
|
|
34
24
|
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
- ✅ **Fixed Banner** - No more broken image, now uses raw GitHub URL
|
|
26
|
+
- ✅ **GStatus Thumbnail Fix** - Link previews with thumbnails now work in Status
|
|
27
|
+
- ✅ **Music & Video URL Import Fixed** - Send audio/video directly from URL without download
|
|
28
|
+
- ✅ **Clean Code** - Removed all spam channel payloads permanently
|
|
29
|
+
- ✅ **Jimp 1.6.0** - Fixed ResizeStrategy.BILINEAR error
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 🔥 Cool Things You Can Do
|
|
34
|
+
|
|
35
|
+
### 1. 🎛️ Interactive Buttons
|
|
36
|
+
```js
|
|
37
|
+
await sock.sendMessage(jid, {
|
|
38
|
+
text: "Choose an option",
|
|
39
|
+
buttons: [
|
|
40
|
+
{buttonId: 'id1', buttonText: {displayText: 'Button 1'}, type: 1},
|
|
41
|
+
{buttonId: 'id2', buttonText: {displayText: 'Button 2'}, type: 1}
|
|
42
|
+
],
|
|
43
|
+
headerType: 1
|
|
44
|
+
})
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 2. 📜 Interactive List Menu Button
|
|
48
|
+
```js
|
|
49
|
+
await sock.sendMessage(jid, {
|
|
50
|
+
text: "Welcome! Choose from menu",
|
|
51
|
+
buttonText: "View Menu",
|
|
52
|
+
sections: [{
|
|
53
|
+
title: "Main Menu",
|
|
54
|
+
rows: [
|
|
55
|
+
{title: "🎵 Music", rowId: "music", description: "Get music"},
|
|
56
|
+
{title: "🎥 Video", rowId: "video", description: "Get videos"},
|
|
57
|
+
{title: "📊 Poll", rowId: "poll", description: "Vote"}
|
|
58
|
+
]
|
|
59
|
+
}]
|
|
60
|
+
})
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 3. 📊 Polls & Voting
|
|
64
|
+
```js
|
|
65
|
+
await sock.sendMessage(jid, {
|
|
66
|
+
poll: { name: "Favorite Color?", values: ["Red","Blue","Green"], selectableCount: 1 }
|
|
67
|
+
})
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 4. 🎵 Music & Video from URL (FIXED in 1.0.2)
|
|
71
|
+
```js
|
|
72
|
+
// Send music directly from web URL - NOW WORKS!
|
|
73
|
+
await sock.sendMessage(jid, {
|
|
74
|
+
audio: { url: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" },
|
|
75
|
+
mimetype: 'audio/mpeg',
|
|
76
|
+
ptt: false
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
// Send video from URL - NOW WORKS!
|
|
80
|
+
await sock.sendMessage(jid, {
|
|
81
|
+
video: { url: "https://example.com/video.mp4" },
|
|
82
|
+
caption: "Check this video!",
|
|
83
|
+
gifPlayback: false
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
// You can also use any direct link
|
|
87
|
+
await sock.sendMessage(jid, {
|
|
88
|
+
audio: { url: "https://cdn.example.com/song.mp3" },
|
|
89
|
+
mimetype: 'audio/mp4'
|
|
90
|
+
})
|
|
37
91
|
```
|
|
38
92
|
|
|
93
|
+
### 5. 🟢 GStatus with Link Thumbnail (FIXED in 1.0.2)
|
|
94
|
+
```js
|
|
95
|
+
// Link preview with thumbnail in Status - FIXED!
|
|
96
|
+
await sock.sendMessage('status@broadcast', {
|
|
97
|
+
text: "Check my website https://lordceaser.com",
|
|
98
|
+
linkPreview: true
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
// Status with image + link thumbnail
|
|
102
|
+
await sock.sendMessage('status@broadcast', {
|
|
103
|
+
image: { url: "https://example.com/thumb.jpg" },
|
|
104
|
+
caption: "My link https://github.com/lordceaser/lordceaser-baileys",
|
|
105
|
+
backgroundColor: "#000000"
|
|
106
|
+
})
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 6. 🖼️ Link Preview Thumbnail (General Fix)
|
|
110
|
+
```js
|
|
111
|
+
// Now thumbnails show properly
|
|
112
|
+
await sock.sendMessage(jid, {
|
|
113
|
+
text: "https://www.npmjs.com/package/lordceaser-baileys"
|
|
114
|
+
})
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### 7. 📰 Newsletter & Channels
|
|
118
|
+
```js
|
|
119
|
+
await sock.newsletterFollow("120363xxx@newsletter")
|
|
120
|
+
await sock.newsletterUnfollow("120363xxx@newsletter")
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### 8. 💬 More Powerful Features
|
|
124
|
+
- ✅ **Messages:** Text, Image, Video, Audio, Document, Sticker, Voice Note
|
|
125
|
+
- ✅ **Interactive:** Buttons, List Menus, Polls, Template Messages
|
|
126
|
+
- ✅ **Media from URL:** No need to download, send directly from link
|
|
127
|
+
- ✅ **Status:** Text, Image, Video Status with link previews
|
|
128
|
+
- ✅ **Groups:** Create, Manage, Admin controls, Invite links, Participants
|
|
129
|
+
- ✅ **Privacy:** Presence (typing, recording, online), Read receipts
|
|
130
|
+
- ✅ **Advanced:** Edit message, Delete message, Reactions, Star message
|
|
131
|
+
- ✅ **Auth:** QR Code & Pairing Code login
|
|
132
|
+
|
|
39
133
|
---
|
|
40
134
|
|
|
41
|
-
|
|
135
|
+
## 📦 Installation
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
npm install lordceaser-baileys@latest
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## ⚡ Quick Start
|
|
42
142
|
|
|
43
143
|
```js
|
|
44
|
-
const { default: makeWASocket, useMultiFileAuthState } = require('lordceaser-baileys')
|
|
144
|
+
const { default: makeWASocket, useMultiFileAuthState, DisconnectReason } = require('lordceaser-baileys')
|
|
145
|
+
const { Boom } = require('@hapi/boom')
|
|
45
146
|
|
|
46
147
|
async function start() {
|
|
47
|
-
const { state, saveCreds } = await useMultiFileAuthState('
|
|
148
|
+
const { state, saveCreds } = await useMultiFileAuthState('auth_info')
|
|
149
|
+
const sock = makeWASocket({ auth: state, printQRInTerminal: true })
|
|
48
150
|
|
|
49
|
-
const sock = makeWASocket({
|
|
50
|
-
auth: state,
|
|
51
|
-
printQRInTerminal: true,
|
|
52
|
-
browser: ["LordCeaser", "Chrome", "1.0.0"]
|
|
53
|
-
})
|
|
54
|
-
|
|
55
151
|
sock.ev.on('creds.update', saveCreds)
|
|
56
|
-
|
|
152
|
+
sock.ev.on('connection.update', ({ connection, lastDisconnect }) => {
|
|
153
|
+
if(connection === 'close') {
|
|
154
|
+
const shouldReconnect = lastDisconnect?.error?.output?.statusCode !== 401
|
|
155
|
+
if(shouldReconnect) start()
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
|
|
57
159
|
sock.ev.on('messages.upsert', async ({ messages }) => {
|
|
58
160
|
const m = messages[0]
|
|
59
|
-
if
|
|
161
|
+
if(!m.message) return
|
|
162
|
+
const jid = m.key.remoteJid
|
|
60
163
|
const text = m.message.conversation || m.message.extendedTextMessage?.text
|
|
61
|
-
|
|
62
|
-
|
|
164
|
+
|
|
165
|
+
if(text === 'menu') {
|
|
166
|
+
await sock.sendMessage(jid, {
|
|
167
|
+
text: "Main Menu",
|
|
168
|
+
buttonText: "Open Menu",
|
|
169
|
+
sections: [{ title: "Options", rows: [
|
|
170
|
+
{title: "Ping", rowId: "ping"},
|
|
171
|
+
{title: "Music", rowId: "music"}
|
|
172
|
+
]}]
|
|
173
|
+
})
|
|
63
174
|
}
|
|
175
|
+
if(text === 'ping') await sock.sendMessage(jid, { text: 'pong ⚡' })
|
|
64
176
|
})
|
|
65
177
|
}
|
|
66
|
-
|
|
67
178
|
start()
|
|
68
179
|
```
|
|
69
180
|
|
|
70
181
|
---
|
|
71
182
|
|
|
72
|
-
|
|
183
|
+
## 🛠️ Fixes in this Fork
|
|
73
184
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
await sock.requestPairingCode("234XXXXXXXX")
|
|
83
|
-
```
|
|
185
|
+
| Issue | Original Baileys | LordCeaser Baileys 1.0.2 |
|
|
186
|
+
|-------|-----------------|--------------------------|
|
|
187
|
+
| Spam Channel Payloads | ❌ Has spam links | ✅ Removed completely |
|
|
188
|
+
| GStatus Thumbnail | ❌ Broken preview | ✅ Fixed with thumbnail |
|
|
189
|
+
| Music URL Import | ❌ Fails to send | ✅ Direct URL works |
|
|
190
|
+
| Video URL Import | ❌ Fails to send | ✅ Direct URL works |
|
|
191
|
+
| Jimp Error | ❌ BILINEAR error | ✅ Jimp 1.6.0 |
|
|
192
|
+
| Banner | ❌ Broken | ✅ Raw GitHub URL |
|
|
84
193
|
|
|
85
194
|
---
|
|
86
195
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Built with ❤️ by **Lord Ceaser**
|
|
196
|
+
## 📄 License
|
|
90
197
|
|
|
91
|
-
|
|
198
|
+
MIT - Lord Ceaser
|
|
92
199
|
|
|
93
|
-
|
|
200
|
+
> Made with ❤️ for the Baileys community - Clean, Stable, Powerful.
|
|
201
|
+
> v1.0.2 - The best fork on NPM!
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lordceaser-baileys",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "LordCeaser Baileys v1.0.2 - Cleanest WhatsApp API with Interactive Buttons, List Menus, GStatus Thumbnail Fix, Music/Video URL Import, Polls & More",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"author": "Lord Ceaser <lordceaser>",
|