@rakku-kun/baileys 2.0.7 → 2.0.9
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 +43 -40
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
<p align="center"><img src="https://raw.githubusercontent.com/rakku-dev/rakkustorage/main/image/waiter-5u3w.jpg" alt="Rakku Bot banner" /></p>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h1 align="center"
|
|
5
|
+
<h1 align="center">⚈ Rakku Baileys</h1>
|
|
6
6
|
<p align="center">
|
|
7
7
|
<strong>TypeScript-based WhatsApp Multi-Device Library</strong><br/>
|
|
8
8
|
With intelligent @lid/@jid mapping and advanced message handling
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<a href="https://github.com/rakku-kundev/rakku-baileys/stargazers"><img src="https://img.shields.io/github/stars/rakku-kundev/rakku-baileys?style=flat-square&logo=github" alt="GitHub Stars"/></a>
|
|
13
|
-
<a href="https://github.com/rakku-kundev/rakku-baileys/issues"><img src="https://img.shields.io/github/issues/rakku-kundev/rakku-baileys?style=flat-square&logo=github" alt="GitHub Issues"/></a>
|
|
14
12
|
<a href="https://www.npmjs.com/package/@rakku-kun/baileys"><img src="https://img.shields.io/npm/v/@rakku-kun/baileys?style=flat-square&logo=npm" alt="npm Version"/></a>
|
|
15
13
|
<a href="https://www.npmjs.com/package/@rakku-kun/baileys"><img src="https://img.shields.io/npm/dt/@rakku-kun/baileys?style=flat-square&logo=npm" alt="npm Downloads"/></a>
|
|
16
14
|
<img src="https://img.shields.io/badge/License-MIT-green?style=flat-square" alt="License"/>
|
|
@@ -18,40 +16,40 @@
|
|
|
18
16
|
|
|
19
17
|
---
|
|
20
18
|
|
|
21
|
-
##
|
|
19
|
+
## ✦ Features
|
|
22
20
|
|
|
23
21
|
### Core Features
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
22
|
+
- **⚈ Intelligent `@lid` and `@jid` Mapping** - Automatic resolution of LID to phone JID
|
|
23
|
+
- **⚈ Multi-Device Support** - Full support for WhatsApp multi-device protocol
|
|
24
|
+
- **⚈ End-to-End Encryption** - Complete E2EE support for secure messaging
|
|
25
|
+
- **⚈ All Message Types** - Support for text, media, polls, reactions, and more
|
|
26
|
+
- **⚈ TypeScript Based** - Type-safe with modern TypeScript
|
|
27
|
+
- **⚈ High Performance** - Optimized for speed and efficiency
|
|
30
28
|
|
|
31
29
|
### Advanced Features
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
30
|
+
- **⚈ Media Handling** - Send/receive images, videos, audio, stickers, documents
|
|
31
|
+
- **⚈ Pairing Code Login** - Easy authentication with custom pairing code "RAKKUWTR"
|
|
32
|
+
- **⚈ Newsletter/Channel Support** - Full support for WhatsApp channels
|
|
33
|
+
- **⚈ Group Management** - Complete group controls and administration
|
|
34
|
+
- **⚈ Story/Broadcast** - Send and manage stories and broadcast lists
|
|
35
|
+
- **⚈ Business API** - Support for WhatsApp Business features
|
|
36
|
+
- **⚈ Poll Messages** - Create and manage poll messages with vote tracking
|
|
37
|
+
- **⚈ Reaction Messages** - Send and receive emoji reactions
|
|
38
|
+
- **⚈ Pin Messages** - Pin important messages in chats
|
|
39
|
+
- **⚈ Disappearing Messages** - Configure ephemeral messages
|
|
40
|
+
- **⚈ Contact Messages** - Send vCard contacts
|
|
41
|
+
- **⚈ Location Messages** - Share live and static locations
|
|
42
|
+
- **⚈ Button Messages** - Interactive button messages (where supported)
|
|
43
|
+
- **⚈ List Messages** - Interactive list messages
|
|
44
|
+
- **⚈ Template Messages** - Pre-defined message templates
|
|
47
45
|
|
|
48
46
|
### Developer Friendly
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
47
|
+
- **⚈ Clean API** - Simple and intuitive API design
|
|
48
|
+
- **⚈ Event-Driven** - Comprehensive event system for all actions
|
|
49
|
+
- **⚈ Auth Storage** - Multi-file and single-file auth state options
|
|
50
|
+
- **⚈ In-Memory Store** - Built-in store for chats, contacts, messages
|
|
51
|
+
- **⚈ Customizable** - Easy to extend and customize
|
|
52
|
+
- **⚈ Well Documented** - Comprehensive documentation and examples
|
|
55
53
|
|
|
56
54
|
---
|
|
57
55
|
|
|
@@ -108,7 +106,7 @@ async function connectToWhatsApp() {
|
|
|
108
106
|
|
|
109
107
|
// Reply to message
|
|
110
108
|
await sock.sendMessage(m.key.remoteJid!, {
|
|
111
|
-
text: 'Hello! I am Rakku Bot
|
|
109
|
+
text: 'Hello! I am Rakku Bot ⚈'
|
|
112
110
|
})
|
|
113
111
|
}
|
|
114
112
|
})
|
|
@@ -134,8 +132,8 @@ const sock = makeWASocket({
|
|
|
134
132
|
// Request pairing code
|
|
135
133
|
if (!sock.authState.creds.registered) {
|
|
136
134
|
const phoneNumber = '6285134816783' // Your phone number with country code
|
|
137
|
-
const code = await sock.requestPairingCode(phoneNumber, "
|
|
138
|
-
console.log('
|
|
135
|
+
const code = await sock.requestPairingCode(phoneNumber, "RAKKUWTR")
|
|
136
|
+
console.log('⚈ Pairing Code:', code)
|
|
139
137
|
}
|
|
140
138
|
```
|
|
141
139
|
|
|
@@ -155,7 +153,7 @@ const sock = makeWASocket({
|
|
|
155
153
|
|
|
156
154
|
### Send Text Message
|
|
157
155
|
```typescript
|
|
158
|
-
await sock.sendMessage(jid, { text: 'Hello World!
|
|
156
|
+
await sock.sendMessage(jid, { text: 'Hello World! ⚈' })
|
|
159
157
|
```
|
|
160
158
|
|
|
161
159
|
### Send Image
|
|
@@ -240,7 +238,7 @@ await sock.sendMessage(jid, {
|
|
|
240
238
|
```typescript
|
|
241
239
|
await sock.sendMessage(jid, {
|
|
242
240
|
react: {
|
|
243
|
-
text: '
|
|
241
|
+
text: '⚈',
|
|
244
242
|
key: message.key
|
|
245
243
|
}
|
|
246
244
|
})
|
|
@@ -469,7 +467,7 @@ await sock.updateProfileName('New Name')
|
|
|
469
467
|
|
|
470
468
|
### Update Profile Status
|
|
471
469
|
```typescript
|
|
472
|
-
await sock.updateProfileStatus('New Status
|
|
470
|
+
await sock.updateProfileStatus('New Status ⚈')
|
|
473
471
|
```
|
|
474
472
|
|
|
475
473
|
### Update Profile Picture
|
|
@@ -615,9 +613,7 @@ const buffer = await downloadMediaMessage(message, 'buffer')
|
|
|
615
613
|
|
|
616
614
|
This project is built upon the amazing work of:
|
|
617
615
|
|
|
618
|
-
- **[@blck-baileys](https://github.com/blckrose)** - Original modified Baileys fork with advanced features
|
|
619
616
|
- **[@WhiskeySockets](https://github.com/WhiskeySockets/Baileys)** - Base Baileys library
|
|
620
|
-
- **[@itsukichan](https://github.com/itsukichan/baileys)** - Additional features and improvements
|
|
621
617
|
|
|
622
618
|
Special thanks to all contributors and the WhatsApp community!
|
|
623
619
|
|
|
@@ -639,9 +635,16 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
639
635
|
|
|
640
636
|
---
|
|
641
637
|
|
|
642
|
-
<p align="center">Made with
|
|
638
|
+
<p align="center">Made with ⚈ by <a href="https://github.com/rakku-kundev">@rakku-kundev</a></p>
|
|
643
639
|
<p align="center">
|
|
644
640
|
<a href="https://github.com/rakku-kundev/rakku-baileys">GitHub</a> •
|
|
645
641
|
<a href="https://www.npmjs.com/package/@rakku-kun/baileys">npm</a> •
|
|
646
642
|
<a href="https://github.com/rakku-kundev/rakku-baileys/issues">Issues</a>
|
|
647
643
|
</p>
|
|
644
|
+
|
|
645
|
+
---
|
|
646
|
+
|
|
647
|
+
### ✦ Official Links & Support
|
|
648
|
+
|
|
649
|
+
* ⚈ **Website** : [https://rakkulabs.biz.id](https://rakkulabs.biz.id)
|
|
650
|
+
* ⚈ **NPM Package** : [@rakku-kun/baileys](https://www.npmjs.com/package/@rakku-kun/baileys)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rakku-kun/baileys",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.9",
|
|
5
5
|
"description": "💧 Rakku Baileys - WhatsApp Multi-Device Library with intelligent @lid/@jid mapping",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"lid-mapping",
|
|
15
15
|
"jid-resolution"
|
|
16
16
|
],
|
|
17
|
-
"homepage": "https://
|
|
17
|
+
"homepage": "https://whatsapp.com/channel/0029Vb6fyiS7z4kcAZUBWx43",
|
|
18
18
|
"repository": {
|
|
19
|
-
"
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://chat.whatsapp.com/FAtRFbXfZxeJISrDQ9kJaj?s=cl&p=a&ilr=0&amv=2"
|
|
20
21
|
},
|
|
21
22
|
"license": "MIT",
|
|
22
23
|
"author": "rakku <hanzthespike@gmail.com>",
|