fixo-baileys 1.0.0 → 1.0.1
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 +593 -202
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -1,79 +1,298 @@
|
|
|
1
|
+
|
|
2
|
+
<!-- ═══════════════════════════════════════════════════════════
|
|
3
|
+
⚡🔥 FIXO-BAILEYS — MEGA README 🔥⚡
|
|
4
|
+
Dark Neon • WhatsApp Web API • Multi-Device • Tracker-Free
|
|
5
|
+
═══════════════════════════════════════════════════════════ -->
|
|
6
|
+
|
|
1
7
|
<div align="center">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
</
|
|
8
|
+
|
|
9
|
+
<!-- ══════════ DARK NEON HERO ══════════ -->
|
|
10
|
+
<img src="https://capsule-render.vercel.app/api?type=waving&color=0:FF1493,50:8A2BE2,100:00FFFF&height=280§ion=header&text=FIXO%20BAILEYS&fontSize=90&fontColor=ffffff&animation=twinkling&fontAlignY=34&desc=%E2%9A%A1%20Next%20Generation%20WhatsApp%20Web%20API%20%E2%9A%A1&descAlignY=58&descSize=24" width="100%" />
|
|
11
|
+
|
|
12
|
+
<!-- ══════════ NEON TYPING ══════════ -->
|
|
13
|
+
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&weight=700&size=22&duration=3000&pause=800&color=FF1493¢er=true&vCenter=true&width=850&lines=%E2%9A%A1+FIXO-BAILEYS+%E2%9A%A1;%F0%9F%94%90+Tracker-Free+WhatsApp+API;%F0%9F%9A%80+Fast+%7C+Clean+%7C+Powerful;%F0%9F%92%96+Powered+by+FIXO+DEV+%F0%9F%92%96" />
|
|
14
|
+
|
|
15
|
+
<br/>
|
|
16
|
+
|
|
17
|
+
<!-- ══════════ NEON BADGES ══════════ -->
|
|
18
|
+
<p>
|
|
19
|
+
<img src="https://img.shields.io/badge/⚡_VERSION-1.0.0-FF1493?style=for-the-badge&labelColor=000000&logo=vercel&logoColor=FF1493" />
|
|
20
|
+
<img src="https://img.shields.io/badge/📜_LICENSE-MIT-8A2BE2?style=for-the-badge&labelColor=000000&logo=opensourceinitiative&logoColor=8A2BE2" />
|
|
21
|
+
<img src="https://img.shields.io/badge/🔧_NODE-%3E%3D_18-00FFFF?style=for-the-badge&labelColor=000000&logo=nodedotjs&logoColor=00FFFF" />
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
<p>
|
|
25
|
+
<a href="https://www.npmjs.com/package/fixo-baileys">
|
|
26
|
+
<img src="https://img.shields.io/npm/v/fixo-baileys?style=for-the-badge&labelColor=000000&color=FF1493&label=npm&logo=npm&logoColor=FF1493" />
|
|
27
|
+
</a>
|
|
28
|
+
<a href="https://www.npmjs.com/package/fixo-baileys">
|
|
29
|
+
<img src="https://img.shields.io/npm/dm/fixo-baileys?style=for-the-badge&labelColor=000000&color=8A2BE2&label=downloads&logo=npm&logoColor=8A2BE2" />
|
|
30
|
+
</a>
|
|
31
|
+
<img src="https://img.shields.io/badge/💖_MADE_BY-FIXO_DEV-FF69B4?style=for-the-badge&labelColor=000000&logo=heart&logoColor=FF69B4" />
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
<p>
|
|
35
|
+
<img src="https://img.shields.io/badge/🔐_SIGNAL-E2E_Encrypted-FF69B4?style=for-the-badge&labelColor=000000&logo=signal&logoColor=FF69B4" />
|
|
36
|
+
<img src="https://img.shields.io/badge/⭐_STARS-WELCOME-FFC0CB?style=for-the-badge&labelColor=000000&logo=github&logoColor=FFC0CB" />
|
|
37
|
+
<img src="https://img.shields.io/badge/🎀_PRs-OPEN-DDA0DD?style=for-the-badge&labelColor=000000&logo=git&logoColor=DDA0DD" />
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<br/>
|
|
41
|
+
|
|
42
|
+
<!-- ══════════ VISITOR COUNTER ══════════ -->
|
|
43
|
+
<p>
|
|
44
|
+
<img src="https://komarev.com/ghpvc/?username=Fixo123&label=VISITORS&color=FF1493&style=for-the-badge" />
|
|
45
|
+
<img src="https://img.shields.io/github/stars/Fixo123/FIXO-BAILEYES-?style=for-the-badge&labelColor=000000&color=FF1493&label=STARS&logo=github" />
|
|
46
|
+
<img src="https://img.shields.io/github/forks/Fixo123/FIXO-BAILEYES-?style=for-the-badge&labelColor=000000&color=8A2BE2&label=FORKS&logo=git" />
|
|
47
|
+
<img src="https://img.shields.io/github/watchers/Fixo123/FIXO-BAILEYES-?style=for-the-badge&labelColor=000000&color=00FFFF&label=WATCHERS&logo=github" />
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
<br/>
|
|
51
|
+
|
|
52
|
+
<!-- ══════════ REPO CARD ══════════ -->
|
|
53
|
+
<a href="https://github.com/Fixo123/FIXO-BAILEYES-">
|
|
54
|
+
<img src="https://github-readme-stats.vercel.app/api/pin/?username=Fixo123&repo=FIXO-BAILEYES-&theme=radical&bg_color=000000&title_color=FF1493&icon_color=8A2BE2&text_color=FF69B4&border_color=FF1493" />
|
|
55
|
+
</a>
|
|
56
|
+
|
|
57
|
+
<br/><br/>
|
|
58
|
+
|
|
59
|
+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif" width="100%" />
|
|
60
|
+
|
|
25
61
|
</div>
|
|
26
62
|
|
|
27
63
|
---
|
|
28
64
|
|
|
29
|
-
|
|
65
|
+
<!-- ═══════════════════════════════════════════
|
|
66
|
+
🎯 QUICK STATS 🎯
|
|
67
|
+
═══════════════════════════════════════════ -->
|
|
68
|
+
<div align="center">
|
|
30
69
|
|
|
31
|
-
|
|
70
|
+
## 🎯 Qᴜɪᴄᴋ Sᴛᴀᴛꜱ 🎯
|
|
32
71
|
|
|
33
|
-
|
|
72
|
+
| 📊 Metric | 💬 Value |
|
|
73
|
+
|:---|:---|
|
|
74
|
+
| ⚡ **Response Time** | < 50ms |
|
|
75
|
+
| 📦 **Max File Size** | 2GB (streaming) |
|
|
76
|
+
| 🔐 **Encryption** | Signal Protocol E2E |
|
|
77
|
+
| 📱 **Platforms** | Multi-Device + Web |
|
|
78
|
+
| 🎯 **API Compatibility** | 100% Baileys drop-in |
|
|
79
|
+
| 🚫 **Trackers** | 0 (zero) |
|
|
34
80
|
|
|
35
|
-
>
|
|
36
|
-
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<img src="https://capsule-render.vercel.app/api?type=rect&color=0:FF1493,50:8A2BE2,100:00FFFF&height=3&width=100%" />
|
|
37
84
|
|
|
38
85
|
---
|
|
39
86
|
|
|
40
|
-
|
|
87
|
+
<!-- ═══════════════════════════════════════════
|
|
88
|
+
📚 TABLE OF CONTENTS 📚
|
|
89
|
+
═══════════════════════════════════════════ -->
|
|
90
|
+
<div align="center">
|
|
91
|
+
|
|
92
|
+
## 📚 Tᴀʙʟᴇ ᴏꜰ Cᴏɴᴛᴇɴᴛꜱ 📚
|
|
93
|
+
|
|
94
|
+
<details open>
|
|
95
|
+
<summary><b>💖 Click to expand</b></summary>
|
|
96
|
+
|
|
97
|
+
<br/>
|
|
98
|
+
|
|
99
|
+
| 🎀 | Section | 🎀 | Section |
|
|
100
|
+
|:---:|:---|:---:|:---|
|
|
101
|
+
| 🎯 | [What is FIXO-BAILEYS?](#-what-is-fixo-baileys) | 💎 | [Why FIXO-BAILEYS?](#-why-fixo-baileys) |
|
|
102
|
+
| ⚡ | [Feature Arsenal](#-feature-arsenal) | 📦 | [Installation](#-installation) |
|
|
103
|
+
| 🔌 | [Connection Guide](#-connection-guide) | 🎨 | [Interactive Buttons](#-interactive-buttons) |
|
|
104
|
+
| 📢 | [Channel Media](#-channel-media) | 💖 | [Reactions](#-reactions) |
|
|
105
|
+
| 🛠️ | [Core API Cheatsheet](#️-core-api-cheatsheet) | 🔐 | [Session Management](#-session-management) |
|
|
106
|
+
| 📚 | [Event Reference](#-event-reference) | 🙏 | [Credits](#-credits) |
|
|
107
|
+
| 🐍 | [Contribution Snake](#-contribution-snake) | ⚠️ | [Disclaimer](#️-disclaimer) |
|
|
108
|
+
|
|
109
|
+
</details>
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<img src="https://capsule-render.vercel.app/api?type=rect&color=0:FF1493,50:8A2BE2,100:00FFFF&height=3&width=100%" />
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
<!-- ═══════════════════════════════════════════
|
|
118
|
+
🎀 WHAT IS SECTION 🎀
|
|
119
|
+
═══════════════════════════════════════════ -->
|
|
120
|
+
<div align="center">
|
|
121
|
+
|
|
122
|
+
## 🎀 Wʜᴀᴛ ɪꜱ FIXO-BAILEYS? 🎀
|
|
123
|
+
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
> ⚡ **FIXO-BAILEYS** is a **completely rebuilt, privacy-first fork** of the Baileys WhatsApp Web API — engineered from the ground up by **FIXO DEV** to deliver unmatched performance, ironclad privacy, and a buttery-smooth developer experience.
|
|
127
|
+
|
|
128
|
+
We stripped the original Baileys engine down to its core, **removed every hidden tracker**, **killed every background telemetry endpoint**, and **eliminated all the auto-follow newsletter junk**. What remains is a lean, mean, **pure messaging machine** 💫
|
|
129
|
+
|
|
130
|
+
<div align="center">
|
|
131
|
+
|
|
132
|
+
> [!IMPORTANT]
|
|
133
|
+
> 💖 **Drop-in replacement.** Every original Baileys API works identically. Zero rewriting. Zero breaking changes. Just a pure upgrade.
|
|
134
|
+
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
**🔑 Key Highlights:**
|
|
138
|
+
|
|
139
|
+
- 🌐 **WhatsApp Web API** — Full Multi-Device support
|
|
140
|
+
- 🔐 **Signal Protocol** — End-to-end encryption out of the box
|
|
141
|
+
- 📦 **2GB Streaming** — Push large media without RAM blowups
|
|
142
|
+
- 🚀 **Zero Telemetry** — No trackers, no analytics, no phone-home
|
|
143
|
+
- 🎨 **Rich Messaging** — Buttons, lists, templates, reactions
|
|
144
|
+
- ⚡ **Async/Await Native** — Modern JavaScript / TypeScript ready
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
<!-- ═══════════════════════════════════════════
|
|
149
|
+
💎 WHY SECTION 💎
|
|
150
|
+
═══════════════════════════════════════════ -->
|
|
151
|
+
<div align="center">
|
|
152
|
+
|
|
153
|
+
## 💎 Wʜʏ FIXO-BAILEYS? 💎
|
|
154
|
+
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<table>
|
|
158
|
+
<tr>
|
|
159
|
+
<td width="50%" valign="top" align="center">
|
|
160
|
+
|
|
161
|
+
### ⚡ What You Get
|
|
41
162
|
|
|
163
|
+
<br/>
|
|
164
|
+
|
|
165
|
+
| | Feature |
|
|
166
|
+
|:---:|:---|
|
|
167
|
+
| 💖 | **100% Tracker-Free** |
|
|
168
|
+
| ✨ | **Zero Bloat Code** |
|
|
169
|
+
| ⚡ | **Lightning Response Time** |
|
|
170
|
+
| 🎀 | **RAM-Friendly Streaming** |
|
|
171
|
+
| 🌷 | **Optimized for Production Bots** |
|
|
172
|
+
| 🔐 | **Secure by Default** |
|
|
173
|
+
|
|
174
|
+
</td>
|
|
175
|
+
<td width="50%" valign="top" align="center">
|
|
176
|
+
|
|
177
|
+
### 🚫 What We Removed
|
|
178
|
+
|
|
179
|
+
<br/>
|
|
180
|
+
|
|
181
|
+
| | Removed |
|
|
182
|
+
|:---:|:---|
|
|
183
|
+
| 🚫 | Hidden telemetry |
|
|
184
|
+
| 🚫 | Auto-follow newsletters |
|
|
185
|
+
| 🚫 | Background data leaks |
|
|
186
|
+
| 🚫 | Unnecessary middleware |
|
|
187
|
+
| 🚫 | Pointless overhead |
|
|
188
|
+
| 🚫 | Trackers & analytics |
|
|
189
|
+
|
|
190
|
+
</td>
|
|
191
|
+
</tr>
|
|
192
|
+
</table>
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
<!-- ═══════════════════════════════════════════
|
|
197
|
+
⚡ FEATURES SECTION ⚡
|
|
198
|
+
═══════════════════════════════════════════ -->
|
|
42
199
|
<div align="center">
|
|
43
200
|
|
|
44
|
-
|
|
201
|
+
## ⚡ Fᴇᴀᴛᴜʀᴇ Aʀꜱᴇɴᴀʟ ⚡
|
|
202
|
+
|
|
203
|
+
<br/>
|
|
204
|
+
|
|
205
|
+
| 🎁 Feature | 💬 Description | 🚦 |
|
|
45
206
|
|:---|:---|:---:|
|
|
46
|
-
| 📦 **2GB
|
|
47
|
-
| 🚀 **
|
|
48
|
-
| 🎨 **
|
|
49
|
-
| 📢 **Channel Media
|
|
50
|
-
| ⚡ **
|
|
51
|
-
| 📱 **Multi-Device** |
|
|
52
|
-
| 🔐 **Signal Protocol** |
|
|
53
|
-
| 🎭 **
|
|
207
|
+
| 📦 **2GB Streaming** | Push massive files without blowing up your RAM | ✅ |
|
|
208
|
+
| 🚀 **Turbo Performance** | Built to fly even on low-tier hosting | ✅ |
|
|
209
|
+
| 🎨 **Rich Buttons** | Buttons, lists, templates — full interactive API | ✅ |
|
|
210
|
+
| 📢 **Channel Media** | Images, videos, audio & docs into Channels | ✅ |
|
|
211
|
+
| ⚡ **Instant Replies** | Zero-lag message pipeline | ✅ |
|
|
212
|
+
| 📱 **Multi-Device** | WhatsApp Multi-Device + Web support | ✅ |
|
|
213
|
+
| 🔐 **Signal Protocol** | Military-grade E2E encryption | ✅ |
|
|
214
|
+
| 🎭 **Dual Connect** | QR Code **or** Pairing Code | ✅ |
|
|
215
|
+
| 🔄 **Auto-Reconnect** | Smart reconnection with exponential backoff | ✅ |
|
|
216
|
+
| 🗂️ **Multi-File Auth** | File-based or custom auth state | ✅ |
|
|
217
|
+
| 🧩 **Plugin Ready** | Easy to extend with custom handlers | ✅ |
|
|
218
|
+
| 📡 **WebSocket Events** | Full event emitter for real-time updates | ✅ |
|
|
54
219
|
|
|
55
220
|
</div>
|
|
56
221
|
|
|
57
222
|
---
|
|
58
223
|
|
|
59
|
-
|
|
224
|
+
<!-- ═══════════════════════════════════════════
|
|
225
|
+
📦 INSTALLATION 📦
|
|
226
|
+
═══════════════════════════════════════════ -->
|
|
227
|
+
<div align="center">
|
|
228
|
+
|
|
229
|
+
## 📦 Iɴꜱᴛᴀʟʟᴀᴛɪᴏɴ 📦
|
|
230
|
+
|
|
231
|
+
</div>
|
|
60
232
|
|
|
61
233
|
```bash
|
|
234
|
+
# 💖 npm
|
|
62
235
|
npm install fixo-baileys
|
|
236
|
+
|
|
237
|
+
# 🌸 yarn
|
|
238
|
+
yarn add fixo-baileys
|
|
239
|
+
|
|
240
|
+
# ✨ pnpm
|
|
241
|
+
pnpm add fixo-baileys
|
|
63
242
|
```
|
|
64
243
|
|
|
244
|
+
<div align="center">
|
|
245
|
+
|
|
246
|
+
<a href="https://www.npmjs.com/package/fixo-baileys">
|
|
247
|
+
<img src="https://img.shields.io/badge/📦_View_on_npm-fixo_baileys-FF1493?style=for-the-badge&labelColor=000000&logo=npm&logoColor=FF1493" />
|
|
248
|
+
</a>
|
|
249
|
+
|
|
250
|
+
<a href="https://www.npmjs.com/package/fixo-baileys">
|
|
251
|
+
<img src="https://img.shields.io/npm/dm/fixo-baileys?style=for-the-badge&labelColor=000000&color=8A2BE2&label=downloads&logo=npm&logoColor=8A2BE2" />
|
|
252
|
+
</a>
|
|
253
|
+
|
|
254
|
+
<a href="https://www.npmjs.com/package/fixo-baileys">
|
|
255
|
+
<img src="https://img.shields.io/npm/v/fixo-baileys?style=for-the-badge&labelColor=000000&color=00FFFF&label=version&logo=npm&logoColor=00FFFF" />
|
|
256
|
+
</a>
|
|
257
|
+
|
|
258
|
+
<a href="https://www.npmjs.com/package/fixo-baileys">
|
|
259
|
+
<img src="https://img.shields.io/npm/l/fixo-baileys?style=for-the-badge&labelColor=000000&color=FF69B4&label=license&logo=npm&logoColor=FF69B4" />
|
|
260
|
+
</a>
|
|
261
|
+
|
|
262
|
+
</div>
|
|
263
|
+
|
|
264
|
+
💡 Pro Tip: Pair with pino for clean logging and @hapi/boom for error handling 🌷
|
|
265
|
+
|
|
266
|
+
📋 Requirements:
|
|
267
|
+
|
|
268
|
+
📦 Dependency 🔢 Version
|
|
269
|
+
Node.js >= 18.0.0
|
|
270
|
+
npm / yarn / pnpm Latest
|
|
271
|
+
Memory 512MB+ recommended
|
|
272
|
+
|
|
65
273
|
---
|
|
66
274
|
|
|
67
|
-
|
|
275
|
+
<!-- ═══════════════════════════════════════════
|
|
276
|
+
🔌 CONNECTION GUIDE 🔌
|
|
277
|
+
═══════════════════════════════════════════ -->
|
|
278
|
+
|
|
279
|
+
<div align="center">
|
|
280
|
+
|
|
281
|
+
🔌 Cᴏɴɴᴇᴄᴛɪᴏɴ Gᴜɪᴅᴇ 🔌
|
|
282
|
+
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<details open>
|
|
286
|
+
<summary><b>📱 Route 1 — QR Code 🌸</b></summary>
|
|
68
287
|
|
|
69
|
-
|
|
288
|
+
<br/>
|
|
70
289
|
|
|
71
290
|
```javascript
|
|
72
291
|
import makeWASocket, { useMultiFileAuthState } from 'fixo-baileys'
|
|
73
292
|
import P from 'pino'
|
|
74
293
|
|
|
75
|
-
async function
|
|
76
|
-
const { state, saveCreds } = await useMultiFileAuthState('
|
|
294
|
+
async function bootUp() {
|
|
295
|
+
const { state, saveCreds } = await useMultiFileAuthState('fixo_session')
|
|
77
296
|
|
|
78
297
|
const sock = makeWASocket({
|
|
79
298
|
auth: state,
|
|
@@ -85,25 +304,28 @@ async function startBot() {
|
|
|
85
304
|
sock.ev.on('creds.update', saveCreds)
|
|
86
305
|
|
|
87
306
|
sock.ev.on('connection.update', ({ connection }) => {
|
|
88
|
-
if (connection === 'open')
|
|
89
|
-
console.log('✅ Bot connected!')
|
|
90
|
-
}
|
|
307
|
+
if (connection === 'open') console.log('💖 FIXO-BAILEYS is LIVE!')
|
|
91
308
|
})
|
|
92
309
|
|
|
93
310
|
return sock
|
|
94
311
|
}
|
|
95
312
|
|
|
96
|
-
|
|
313
|
+
bootUp()
|
|
97
314
|
```
|
|
98
315
|
|
|
99
|
-
|
|
316
|
+
</details>
|
|
317
|
+
|
|
318
|
+
<details>
|
|
319
|
+
<summary><b>🔢 Route 2 — Pairing Code ✨</b></summary>
|
|
320
|
+
|
|
321
|
+
<br/>
|
|
100
322
|
|
|
101
323
|
```javascript
|
|
102
324
|
import makeWASocket, { useMultiFileAuthState } from 'fixo-baileys'
|
|
103
325
|
import P from 'pino'
|
|
104
326
|
|
|
105
|
-
async function
|
|
106
|
-
const { state, saveCreds } = await useMultiFileAuthState('
|
|
327
|
+
async function pairUp() {
|
|
328
|
+
const { state, saveCreds } = await useMultiFileAuthState('fixo_session')
|
|
107
329
|
|
|
108
330
|
const sock = makeWASocket({
|
|
109
331
|
auth: state,
|
|
@@ -113,38 +335,41 @@ async function startBotWithPairing() {
|
|
|
113
335
|
})
|
|
114
336
|
|
|
115
337
|
if (!sock.authState.creds.registered) {
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
console.log('🔢
|
|
338
|
+
const phone = '94771234567'
|
|
339
|
+
const code = await sock.requestPairingCode(phone)
|
|
340
|
+
console.log('🔢 Pairing Code:', code)
|
|
119
341
|
}
|
|
120
342
|
|
|
121
343
|
sock.ev.on('creds.update', saveCreds)
|
|
122
344
|
|
|
123
345
|
sock.ev.on('connection.update', ({ connection }) => {
|
|
124
|
-
if (connection === 'open')
|
|
125
|
-
console.log('✅ Bot connected via pairing code!')
|
|
126
|
-
}
|
|
346
|
+
if (connection === 'open') console.log('💖 Paired and Connected!')
|
|
127
347
|
})
|
|
128
348
|
|
|
129
349
|
return sock
|
|
130
350
|
}
|
|
131
351
|
|
|
132
|
-
|
|
352
|
+
pairUp()
|
|
133
353
|
```
|
|
134
354
|
|
|
135
|
-
|
|
355
|
+
</details>
|
|
356
|
+
|
|
357
|
+
<details>
|
|
358
|
+
<summary><b>🔄 Route 3 — Auto-Reconnect Powerhouse 🌷</b></summary>
|
|
359
|
+
|
|
360
|
+
<br/>
|
|
136
361
|
|
|
137
362
|
```javascript
|
|
138
|
-
import makeWASocket, {
|
|
139
|
-
useMultiFileAuthState,
|
|
363
|
+
import makeWASocket, {
|
|
364
|
+
useMultiFileAuthState,
|
|
140
365
|
DisconnectReason,
|
|
141
|
-
fetchLatestBaileysVersion
|
|
366
|
+
fetchLatestBaileysVersion
|
|
142
367
|
} from 'fixo-baileys'
|
|
143
368
|
import { Boom } from '@hapi/boom'
|
|
144
369
|
import P from 'pino'
|
|
145
370
|
|
|
146
|
-
async function
|
|
147
|
-
const { state, saveCreds } = await useMultiFileAuthState('
|
|
371
|
+
async function resilientConnect() {
|
|
372
|
+
const { state, saveCreds } = await useMultiFileAuthState('fixo_session')
|
|
148
373
|
const { version } = await fetchLatestBaileysVersion()
|
|
149
374
|
|
|
150
375
|
const sock = makeWASocket({
|
|
@@ -153,185 +378,210 @@ async function connectToWhatsApp() {
|
|
|
153
378
|
logger: P({ level: 'silent' }),
|
|
154
379
|
printQRInTerminal: true,
|
|
155
380
|
browser: ['FIXO-BAILEYS', 'Chrome', '1.0.0'],
|
|
156
|
-
defaultQueryTimeoutMs:
|
|
157
|
-
connectTimeoutMs:
|
|
381
|
+
defaultQueryTimeoutMs: 120_000,
|
|
382
|
+
connectTimeoutMs: 60_000,
|
|
158
383
|
enableAutoSessionRecreation: true,
|
|
159
384
|
markOnlineOnConnect: false,
|
|
160
385
|
syncFullHistory: false,
|
|
161
386
|
})
|
|
162
387
|
|
|
163
|
-
sock.ev.on('connection.update', (
|
|
164
|
-
const { connection, lastDisconnect } = update
|
|
165
|
-
|
|
388
|
+
sock.ev.on('connection.update', ({ connection, lastDisconnect }) => {
|
|
166
389
|
if (connection === 'close') {
|
|
167
|
-
const
|
|
168
|
-
const
|
|
390
|
+
const code = (lastDisconnect?.error as Boom)?.output?.statusCode
|
|
391
|
+
const retry = code !== DisconnectReason.loggedOut
|
|
169
392
|
|
|
170
|
-
console.log(
|
|
393
|
+
console.log(`💔 Disconnected — Code: ${code}`)
|
|
171
394
|
|
|
172
|
-
if (
|
|
173
|
-
|
|
174
|
-
} else {
|
|
175
|
-
console.log('🚪 Logged out. Please scan QR again.')
|
|
176
|
-
}
|
|
395
|
+
if (retry) setTimeout(resilientConnect, 3_000)
|
|
396
|
+
else console.log('🚪 Logged out — rescan needed.')
|
|
177
397
|
} else if (connection === 'open') {
|
|
178
|
-
console.log('
|
|
398
|
+
console.log('💖 FIXO-BAILEYS online!')
|
|
179
399
|
}
|
|
180
400
|
})
|
|
181
401
|
|
|
182
402
|
sock.ev.on('creds.update', saveCreds)
|
|
183
|
-
|
|
184
403
|
return sock
|
|
185
404
|
}
|
|
186
405
|
|
|
187
|
-
|
|
406
|
+
resilientConnect()
|
|
188
407
|
```
|
|
189
408
|
|
|
409
|
+
</details>
|
|
410
|
+
|
|
190
411
|
---
|
|
191
412
|
|
|
192
|
-
|
|
413
|
+
<!-- ═══════════════════════════════════════════
|
|
414
|
+
🎨 BUTTONS 🎨
|
|
415
|
+
═══════════════════════════════════════════ -->
|
|
193
416
|
|
|
194
|
-
|
|
417
|
+
<div align="center">
|
|
418
|
+
|
|
419
|
+
🎨 Iɴᴛᴇʀᴀᴄᴛɪᴠᴇ Bᴜᴛᴛᴏɴꜱ 🎨
|
|
420
|
+
|
|
421
|
+
</div>
|
|
422
|
+
|
|
423
|
+
<details open>
|
|
424
|
+
<summary><b>🔘 Basic Buttons 🌸</b></summary>
|
|
425
|
+
|
|
426
|
+
<br/>
|
|
195
427
|
|
|
196
428
|
```javascript
|
|
197
429
|
await sock.sendMessage(jid, {
|
|
198
|
-
text: '🎯 *
|
|
199
|
-
footer: 'FIXO-BAILEYS',
|
|
430
|
+
text: '🎯 *Pick your path:*',
|
|
431
|
+
footer: '💖 FIXO-BAILEYS',
|
|
200
432
|
buttons: [
|
|
201
|
-
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
type: 1
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
buttonId: 'btn_no',
|
|
208
|
-
buttonText: { displayText: '❌ No' },
|
|
209
|
-
type: 1
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
buttonId: 'btn_maybe',
|
|
213
|
-
buttonText: { displayText: '🤔 Maybe' },
|
|
214
|
-
type: 1
|
|
215
|
-
}
|
|
433
|
+
{ buttonId: 'go_yes', buttonText: { displayText: '✅ Yes' }, type: 1 },
|
|
434
|
+
{ buttonId: 'go_no', buttonText: { displayText: '❌ No' }, type: 1 },
|
|
435
|
+
{ buttonId: 'go_hmm', buttonText: { displayText: '🤔 Maybe' }, type: 1 }
|
|
216
436
|
],
|
|
217
437
|
headerType: 1
|
|
218
438
|
}, { quoted: m })
|
|
219
439
|
```
|
|
220
440
|
|
|
221
|
-
|
|
441
|
+
</details>
|
|
442
|
+
|
|
443
|
+
<details>
|
|
444
|
+
<summary><b>🔗 URL Buttons ✨</b></summary>
|
|
445
|
+
|
|
446
|
+
<br/>
|
|
222
447
|
|
|
223
448
|
```javascript
|
|
224
449
|
await sock.sendMessage(jid, {
|
|
225
|
-
text: '🌐 *
|
|
226
|
-
footer: 'FIXO-BAILEYS',
|
|
450
|
+
text: '🌐 *Jump to our site:*',
|
|
451
|
+
footer: '💖 FIXO-BAILEYS',
|
|
227
452
|
buttons: [
|
|
228
|
-
{
|
|
229
|
-
buttonId: 'url_btn',
|
|
230
|
-
buttonText: { displayText: '🌐 Open Website' },
|
|
231
|
-
type: 1
|
|
232
|
-
}
|
|
453
|
+
{ buttonId: 'visit', buttonText: { displayText: '🌐 Open Website' }, type: 1 }
|
|
233
454
|
],
|
|
234
455
|
headerType: 1
|
|
235
456
|
})
|
|
236
457
|
```
|
|
237
458
|
|
|
238
|
-
|
|
459
|
+
</details>
|
|
460
|
+
|
|
461
|
+
<details>
|
|
462
|
+
<summary><b>📋 List Menu 🌷</b></summary>
|
|
463
|
+
|
|
464
|
+
<br/>
|
|
239
465
|
|
|
240
466
|
```javascript
|
|
241
467
|
await sock.sendMessage(jid, {
|
|
242
|
-
text: '📋 *Main Menu*\n\
|
|
243
|
-
footer: '© FIXO-BAILEYS',
|
|
468
|
+
text: '📋 *FIXO Main Menu*\n\nPick a category below:',
|
|
469
|
+
footer: '© FIXO-BAILEYS 💖',
|
|
244
470
|
title: '🎯 Bot Menu',
|
|
245
471
|
buttonText: '📂 Open Menu',
|
|
246
472
|
sections: [
|
|
247
473
|
{
|
|
248
|
-
title: '👤 User
|
|
474
|
+
title: '👤 User Zone',
|
|
249
475
|
rows: [
|
|
250
|
-
{ title: '👤 My Profile', rowId: '
|
|
251
|
-
{ title: '⚙️ Settings',
|
|
252
|
-
{ title: '📊
|
|
476
|
+
{ title: '👤 My Profile', rowId: 'u_profile', description: 'Check your profile' },
|
|
477
|
+
{ title: '⚙️ Settings', rowId: 'u_settings', description: 'Tweak preferences' },
|
|
478
|
+
{ title: '📊 Stats', rowId: 'u_stats', description: 'Bot statistics' }
|
|
253
479
|
]
|
|
254
480
|
},
|
|
255
481
|
{
|
|
256
|
-
title: '🎮 Fun
|
|
482
|
+
title: '🎮 Fun Zone',
|
|
257
483
|
rows: [
|
|
258
|
-
{ title: '🎲 Roll Dice',
|
|
259
|
-
{ title: '🎰 Spin Wheel', rowId: '
|
|
260
|
-
{ title: '🎯 Truth
|
|
484
|
+
{ title: '🎲 Roll Dice', rowId: 'f_dice' },
|
|
485
|
+
{ title: '🎰 Spin Wheel', rowId: 'f_spin' },
|
|
486
|
+
{ title: '🎯 Truth/Dare', rowId: 'f_tod' }
|
|
261
487
|
]
|
|
262
488
|
},
|
|
263
489
|
{
|
|
264
|
-
title: '🛠️ Admin
|
|
490
|
+
title: '🛠️ Admin Zone',
|
|
265
491
|
rows: [
|
|
266
|
-
{ title: '🔨 Ban User',
|
|
267
|
-
{ title: '📢 Broadcast', rowId: '
|
|
492
|
+
{ title: '🔨 Ban User', rowId: 'a_ban' },
|
|
493
|
+
{ title: '📢 Broadcast', rowId: 'a_broadcast' }
|
|
268
494
|
]
|
|
269
495
|
}
|
|
270
496
|
]
|
|
271
497
|
}, { quoted: m })
|
|
272
498
|
```
|
|
273
499
|
|
|
274
|
-
|
|
500
|
+
</details>
|
|
501
|
+
|
|
502
|
+
<details>
|
|
503
|
+
<summary><b>📨 Handle Responses 💖</b></summary>
|
|
504
|
+
|
|
505
|
+
<br/>
|
|
275
506
|
|
|
276
507
|
```javascript
|
|
277
|
-
sock.ev.on('messages.upsert', async ({ messages
|
|
508
|
+
sock.ev.on('messages.upsert', async ({ messages }) => {
|
|
278
509
|
const m = messages[0]
|
|
279
510
|
if (!m.message) return
|
|
280
511
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
case 'btn_yes':
|
|
290
|
-
await sock.sendMessage(m.key.remoteJid, { text: '✅ You said YES!' })
|
|
291
|
-
break
|
|
292
|
-
case 'btn_no':
|
|
293
|
-
await sock.sendMessage(m.key.remoteJid, { text: '❌ You said NO!' })
|
|
294
|
-
break
|
|
295
|
-
case 'btn_maybe':
|
|
296
|
-
await sock.sendMessage(m.key.remoteJid, { text: '🤔 Maybe...' })
|
|
297
|
-
break
|
|
512
|
+
// 💖 Button response
|
|
513
|
+
const btn = m.message?.buttonsResponseMessage
|
|
514
|
+
if (btn) {
|
|
515
|
+
const id = btn.selectedButtonId
|
|
516
|
+
const replies = {
|
|
517
|
+
go_yes: '✅ You said YES!',
|
|
518
|
+
go_no: '❌ You said NO!',
|
|
519
|
+
go_hmm: '🤔 Maybe...'
|
|
298
520
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
const listResponse = m.message?.listResponseMessage
|
|
302
|
-
if (listResponse) {
|
|
303
|
-
const selectedRow = listResponse.singleSelectReply?.selectedRowId
|
|
304
|
-
console.log(`User selected: ${selectedRow}`)
|
|
305
|
-
|
|
306
|
-
if (selectedRow === 'cmd_profile') {
|
|
307
|
-
await sock.sendMessage(m.key.remoteJid, { text: '👤 *Your Profile*\nName: User' })
|
|
521
|
+
if (replies[id]) {
|
|
522
|
+
await sock.sendMessage(m.key.remoteJid, { text: replies[id] })
|
|
308
523
|
}
|
|
309
524
|
}
|
|
310
525
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
526
|
+
// 🌸 List response
|
|
527
|
+
const list = m.message?.listResponseMessage
|
|
528
|
+
if (list) {
|
|
529
|
+
const row = list.singleSelectReply?.selectedRowId
|
|
530
|
+
if (row === 'u_profile') {
|
|
531
|
+
await sock.sendMessage(m.key.remoteJid, {
|
|
532
|
+
text: '👤 *Your Profile*\nName: FIXO User 💖'
|
|
533
|
+
})
|
|
534
|
+
}
|
|
314
535
|
}
|
|
315
536
|
})
|
|
316
537
|
```
|
|
317
538
|
|
|
539
|
+
</details>
|
|
540
|
+
|
|
318
541
|
---
|
|
319
542
|
|
|
320
|
-
|
|
543
|
+
<!-- ═══════════════════════════════════════════
|
|
544
|
+
📢 CHANNEL MEDIA 📢
|
|
545
|
+
═══════════════════════════════════════════ -->
|
|
546
|
+
|
|
547
|
+
<div align="center">
|
|
321
548
|
|
|
322
|
-
|
|
549
|
+
📢 Cʜᴀɴɴᴇʟ Mᴇᴅɪᴀ 📢
|
|
550
|
+
|
|
551
|
+
</div>
|
|
323
552
|
|
|
324
553
|
```javascript
|
|
554
|
+
// 🎵 Send Audio to Channel
|
|
325
555
|
await sock.newsletterSendMedia(channelJid, {
|
|
326
|
-
audio: { url: 'https://example.com/
|
|
556
|
+
audio: { url: 'https://example.com/track.mp3' },
|
|
327
557
|
mimetype: 'audio/mp3',
|
|
328
558
|
ptt: false
|
|
329
559
|
})
|
|
560
|
+
|
|
561
|
+
// 🖼️ Send Image to Channel
|
|
562
|
+
await sock.newsletterSendMedia(channelJid, {
|
|
563
|
+
image: { url: 'https://example.com/image.jpg' },
|
|
564
|
+
caption: '💖 FIXO-BAILEYS'
|
|
565
|
+
})
|
|
566
|
+
|
|
567
|
+
// 🎬 Send Video to Channel
|
|
568
|
+
await sock.newsletterSendMedia(channelJid, {
|
|
569
|
+
video: { url: 'https://example.com/video.mp4' },
|
|
570
|
+
caption: '⚡ Powered by FIXO'
|
|
571
|
+
})
|
|
330
572
|
```
|
|
331
573
|
|
|
332
574
|
---
|
|
333
575
|
|
|
334
|
-
|
|
576
|
+
<!-- ═══════════════════════════════════════════
|
|
577
|
+
💖 REACTIONS 💖
|
|
578
|
+
═══════════════════════════════════════════ -->
|
|
579
|
+
|
|
580
|
+
<div align="center">
|
|
581
|
+
|
|
582
|
+
💖 Rᴇᴀᴄᴛɪᴏɴꜱ 💖
|
|
583
|
+
|
|
584
|
+
</div>
|
|
335
585
|
|
|
336
586
|
```javascript
|
|
337
587
|
await sock.sendMessage(jid, {
|
|
@@ -344,88 +594,229 @@ await sock.sendMessage(jid, {
|
|
|
344
594
|
|
|
345
595
|
---
|
|
346
596
|
|
|
347
|
-
|
|
597
|
+
<!-- ═══════════════════════════════════════════
|
|
598
|
+
🛠️ API CHEATSHEET 🛠️
|
|
599
|
+
═══════════════════════════════════════════ -->
|
|
348
600
|
|
|
349
|
-
|
|
601
|
+
<div align="center">
|
|
602
|
+
|
|
603
|
+
🛠️ Cᴏʀᴇ API Cʜᴇᴀᴛꜱʜᴇᴇᴛ 🛠️
|
|
604
|
+
|
|
605
|
+
</div>
|
|
606
|
+
|
|
607
|
+
📨 Messaging
|
|
608
|
+
|
|
609
|
+
```javascript
|
|
610
|
+
await sock.sendMessage(jid, { text: 'Hey!' }) // 💬 Text
|
|
611
|
+
await sock.sendMessage(jid, { image: { url } }) // 🖼️ Image
|
|
612
|
+
await sock.sendMessage(jid, { video: { url } }) // 🎬 Video
|
|
613
|
+
await sock.sendMessage(jid, { audio: { url } }) // 🎵 Audio
|
|
614
|
+
await sock.sendMessage(jid, { document: { url } }) // 📄 Document
|
|
615
|
+
await sock.sendMessage(jid, { sticker: { url } }) // 🎨 Sticker
|
|
616
|
+
await sock.sendMessage(jid, { react: { text, key } }) // ❤️ React
|
|
617
|
+
await sock.sendMessage(jid, { delete: msg.key }) // 🗑️ Delete
|
|
618
|
+
await sock.sendMessage(jid, { edit: msg.key, text }) // ✏️ Edit
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
👥 Groups
|
|
350
622
|
|
|
351
623
|
```javascript
|
|
352
|
-
await sock.
|
|
353
|
-
await sock.
|
|
354
|
-
await sock.
|
|
355
|
-
await sock.
|
|
356
|
-
await sock.
|
|
357
|
-
await sock.
|
|
358
|
-
await sock.
|
|
359
|
-
await sock.
|
|
360
|
-
await sock.sendMessage(jid, { edit: msg.key, text }) // Edit
|
|
624
|
+
await sock.groupCreate(name, participants) // ➕ Create
|
|
625
|
+
await sock.groupParticipantsUpdate(jid, [user], 'add') // 👤 Add
|
|
626
|
+
await sock.groupUpdateSubject(jid, 'New Name') // 📝 Rename
|
|
627
|
+
await sock.groupUpdateDescription(jid, 'New Desc') // 📄 Desc
|
|
628
|
+
await sock.groupSettingUpdate(jid, 'announcement') // 🔒 Lock
|
|
629
|
+
await sock.groupLeave(jid) // 🚪 Leave
|
|
630
|
+
await sock.groupMetadata(jid) // 📊 Info
|
|
631
|
+
await sock.groupInviteCode(jid) // 🔗 Invite
|
|
361
632
|
```
|
|
362
633
|
|
|
363
|
-
|
|
634
|
+
👤 Profile & Presence
|
|
364
635
|
|
|
365
636
|
```javascript
|
|
366
|
-
await sock.
|
|
367
|
-
await sock.
|
|
368
|
-
await sock.
|
|
369
|
-
await sock.
|
|
370
|
-
await sock.
|
|
371
|
-
await sock.
|
|
372
|
-
await sock.groupMetadata(jid)
|
|
373
|
-
await sock.groupInviteCode(jid)
|
|
637
|
+
await sock.updateProfileName('FIXO User') // 📝 Name
|
|
638
|
+
await sock.updateProfileStatus('💖 FIXO-BAILEYS') // 💬 Status
|
|
639
|
+
await sock.updateProfilePicture(jid, { url }) // 🖼️ Avatar
|
|
640
|
+
await sock.sendPresenceUpdate('available', jid) // 🟢 Online
|
|
641
|
+
await sock.readMessages([msg.key]) // ✅ Read
|
|
642
|
+
await sock.sendPresenceUpdate('composing', jid) // ✏️ Typing
|
|
374
643
|
```
|
|
375
644
|
|
|
376
645
|
---
|
|
377
646
|
|
|
378
|
-
|
|
647
|
+
<!-- ═══════════════════════════════════════════
|
|
648
|
+
🔐 SESSION 🔐
|
|
649
|
+
═══════════════════════════════════════════ -->
|
|
650
|
+
|
|
651
|
+
<div align="center">
|
|
652
|
+
|
|
653
|
+
🔐 Sᴇꜱꜱɪᴏɴ Mᴀɴᴀɢᴇᴍᴇɴᴛ 🔐
|
|
654
|
+
|
|
655
|
+
</div>
|
|
379
656
|
|
|
380
657
|
```javascript
|
|
381
658
|
import { useMultiFileAuthState } from 'fixo-baileys'
|
|
382
659
|
|
|
383
|
-
const { state, saveCreds } = await useMultiFileAuthState('
|
|
384
|
-
|
|
660
|
+
const { state, saveCreds } = await useMultiFileAuthState('fixo_session')
|
|
385
661
|
const sock = makeWASocket({ auth: state })
|
|
386
662
|
|
|
387
663
|
sock.ev.on('creds.update', saveCreds)
|
|
388
664
|
```
|
|
389
665
|
|
|
666
|
+
🔑 Session Storage Options:
|
|
667
|
+
|
|
668
|
+
🗂️ Method 💬 Use Case
|
|
669
|
+
useMultiFileAuthState 📁 Simple file-based (dev / small bots)
|
|
670
|
+
Custom AuthenticationState 🗄️ Database / Redis / MongoDB (production)
|
|
671
|
+
useSingleFileAuthState 📦 Single JSON file (lightweight)
|
|
672
|
+
|
|
673
|
+
⚠️ Security: Never commit session files to GitHub. Add to .gitignore:
|
|
674
|
+
|
|
675
|
+
```
|
|
676
|
+
fixo_session/
|
|
677
|
+
*.json
|
|
678
|
+
!package.json
|
|
679
|
+
```
|
|
680
|
+
|
|
390
681
|
---
|
|
391
682
|
|
|
392
|
-
|
|
683
|
+
<!-- ═══════════════════════════════════════════
|
|
684
|
+
📚 EVENTS 📚
|
|
685
|
+
═══════════════════════════════════════════ -->
|
|
393
686
|
|
|
394
|
-
|
|
687
|
+
<div align="center">
|
|
395
688
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
689
|
+
📚 Eᴠᴇɴᴛ Rᴇꜰᴇʀᴇɴᴄᴇ 📚
|
|
690
|
+
|
|
691
|
+
<br/>
|
|
692
|
+
|
|
693
|
+
🎯 Event 📖 Description
|
|
694
|
+
connection.update Connection state transitions
|
|
695
|
+
creds.update Auth credentials refreshed
|
|
696
|
+
messages.upsert Incoming new messages
|
|
697
|
+
messages.update Message status changes
|
|
698
|
+
messages.delete Message deleted
|
|
699
|
+
message-receipt.update Read receipts
|
|
700
|
+
groups.update Group metadata changes
|
|
701
|
+
group-participants.update Members added / removed / promoted
|
|
702
|
+
call Incoming call events
|
|
703
|
+
presence.update Contact presence (online, typing)
|
|
704
|
+
chats.upsert New chats created
|
|
705
|
+
contacts.upsert New contacts synced
|
|
706
|
+
blocklist.update Blocklist changes
|
|
707
|
+
|
|
708
|
+
</div>
|
|
407
709
|
|
|
408
710
|
---
|
|
409
711
|
|
|
410
|
-
|
|
712
|
+
<!-- ═══════════════════════════════════════════
|
|
713
|
+
🐍 CONTRIBUTION SNAKE 🐍
|
|
714
|
+
═══════════════════════════════════════════ -->
|
|
715
|
+
|
|
716
|
+
<div align="center">
|
|
717
|
+
|
|
718
|
+
🐍 Cᴏɴᴛʀɪʙᴜᴛɪᴏɴ Sɴᴀᴋᴇ 🐍
|
|
719
|
+
|
|
720
|
+
<br/>
|
|
721
|
+
|
|
722
|
+
<img src="https://raw.githubusercontent.com/Fixo123/FIXO-BAILEYES-/output/github-contribution-grid-snake.svg" width="100%" />
|
|
723
|
+
|
|
724
|
+
<img src="https://raw.githubusercontent.com/Fixo123/FIXO-BAILEYES-/output/github-contribution-grid-snake-dark.svg" width="100%" />
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
<!-- ══════════ GITHUB STATS ══════════ -->
|
|
731
|
+
|
|
732
|
+
<a href="https://github.com/Fixo123">
|
|
733
|
+
<img src="https://github-readme-stats.vercel.app/api?username=Fixo123&show_icons=true&theme=radical&bg_color=000000&title_color=FF1493&icon_color=8A2BE2&text_color=FF69B4&border_color=FF1493&include_all_commits=true&count_private=true" height="180" />
|
|
734
|
+
</a>
|
|
735
|
+
<a href="https://github.com/Fixo123">
|
|
736
|
+
<img src="https://github-readme-streak-stats.herokuapp.com/?user=Fixo123&theme=radical&background=000000&border=FF1493&stroke=FF1493&ring=8A2BE2&fire=00FFFF&currStreakLabel=FF69B4" height="180" />
|
|
737
|
+
</a>
|
|
411
738
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
<!-- ══════════ TOP LANGS ══════════ -->
|
|
744
|
+
|
|
745
|
+
<a href="https://github.com/Fixo123">
|
|
746
|
+
<img src="https://github-readme-stats.vercel.app/api/top-langs/?username=Fixo123&layout=compact&theme=radical&bg_color=000000&title_color=FF1493&text_color=FF69B4&border_color=FF1493" />
|
|
747
|
+
</a>
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
<!-- ══════════ ACTIVITY GRAPH ══════════ -->
|
|
754
|
+
|
|
755
|
+
<a href="https://github.com/Fixo123">
|
|
756
|
+
<img src="https://github-readme-activity-graph.vercel.app/graph?username=Fixo123&bg_color=000000&color=FF1493&line=8A2BE2&point=00FFFF&area=true&hide_border=false&border_color=FF1493" width="100%" />
|
|
757
|
+
</a>
|
|
758
|
+
|
|
759
|
+
</div>
|
|
415
760
|
|
|
416
761
|
---
|
|
417
762
|
|
|
418
|
-
|
|
763
|
+
<!-- ═══════════════════════════════════════════
|
|
764
|
+
🙏 CREDITS 🙏
|
|
765
|
+
═══════════════════════════════════════════ -->
|
|
419
766
|
|
|
420
|
-
>
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
767
|
+
<div align="center">
|
|
768
|
+
|
|
769
|
+
🙏 Cʀᴇᴅɪᴛꜱ 🙏
|
|
770
|
+
|
|
771
|
+
<br/>
|
|
772
|
+
|
|
773
|
+
· 🧠 Original Baileys — @WhiskeySockets
|
|
774
|
+
· 🔐 libsignal — @signal
|
|
775
|
+
· 💖 Every contributor who made this possible
|
|
776
|
+
· ⚡ FIXO DEV — Maintainer & Fork Author
|
|
777
|
+
|
|
778
|
+
</div>
|
|
779
|
+
|
|
780
|
+
---
|
|
781
|
+
|
|
782
|
+
<!-- ═══════════════════════════════════════════
|
|
783
|
+
⚠️ DISCLAIMER ⚠️
|
|
784
|
+
═══════════════════════════════════════════ -->
|
|
785
|
+
|
|
786
|
+
<div align="center">
|
|
787
|
+
|
|
788
|
+
⚠️ Dɪꜱᴄʟᴀɪᴍᴇʀ ⚠️
|
|
789
|
+
|
|
790
|
+
</div>
|
|
791
|
+
|
|
792
|
+
💔 FIXO-BAILEYS is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or affiliates.
|
|
793
|
+
|
|
794
|
+
🌐 Official WhatsApp: whatsapp.com. "WhatsApp" and related marks are registered trademarks of their respective owners.
|
|
795
|
+
|
|
796
|
+
🌸 Use responsibly. No spam. No stalkerware. No bulk automation abuse. Respect people's privacy.
|
|
797
|
+
|
|
798
|
+
⚖️ Legal: This library is intended for educational and personal use only. The maintainers are not responsible for any misuse or account bans.
|
|
425
799
|
|
|
426
800
|
---
|
|
427
801
|
|
|
802
|
+
<!-- ═══════════════════════════════════════════
|
|
803
|
+
⚡ NEON FOOTER ⚡
|
|
804
|
+
═══════════════════════════════════════════ -->
|
|
805
|
+
|
|
428
806
|
<div align="center">
|
|
429
|
-
|
|
807
|
+
|
|
808
|
+
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&weight=700&size=20&duration=3000&pause=800&color=FF1493¢er=true&vCenter=true&width=800&lines=%E2%9A%A1+FIXO-BAILEYS+%E2%9A%A1;%F0%9F%92%96+THANKS+FOR+VISITING+%F0%9F%92%96" />
|
|
809
|
+
|
|
810
|
+
<br/>
|
|
811
|
+
|
|
812
|
+
<img src="https://capsule-render.vercel.app/api?type=waving&color=0:FF1493,50:8A2BE2,100:00FFFF&height=200§ion=footer&text=Made%20with%20%E2%9D%A4%EF%B8%8F%20by%20FIXO%20DEV&fontSize=32&fontColor=ffffff&animation=twinkling&fontAlignY=68" width="100%" />
|
|
813
|
+
|
|
814
|
+
🌟 If FIXO-BAILEYS powers your project, drop a ⭐ — it fuels the grind!
|
|
815
|
+
|
|
816
|
+
⚡ FIXO DEV — Building the Future of WhatsApp Automation ⚡
|
|
817
|
+
|
|
818
|
+
<br/>
|
|
819
|
+
|
|
820
|
+
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&weight=700&size=14&duration=3000&pause=1000&color=FF1493¢er=true&vCenter=true&width=700&lines=%F0%9F%92%96+FIXO+DEV+%7C+2024+%F0%9F%92%96;%E2%9A%A1+Powered+by+Coffee+%26+Code+%E2%9A%A1" />
|
|
430
821
|
|
|
431
822
|
</div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fixo-baileys",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "A WebSockets library for interacting with WhatsApp Web",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|
|
@@ -69,9 +69,15 @@
|
|
|
69
69
|
"sharp": "*"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
72
|
-
"audio-decode": {
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
"audio-decode": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"jimp": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"link-preview-js": {
|
|
79
|
+
"optional": true
|
|
80
|
+
}
|
|
75
81
|
},
|
|
76
82
|
"engines": {
|
|
77
83
|
"node": ">=20.0.0"
|