@rakku-kun/baileys 2.0.8 → 2.0.10
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 +36 -38
- package/package.json +2 -5
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"/>
|
|
@@ -21,37 +19,37 @@
|
|
|
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
|
})
|
|
@@ -135,7 +133,7 @@ const sock = makeWASocket({
|
|
|
135
133
|
if (!sock.authState.creds.registered) {
|
|
136
134
|
const phoneNumber = '6285134816783' // Your phone number with country code
|
|
137
135
|
const code = await sock.requestPairingCode(phoneNumber, "RAKKUWTR")
|
|
138
|
-
console.log('
|
|
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
|
|
@@ -637,7 +635,7 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
637
635
|
|
|
638
636
|
---
|
|
639
637
|
|
|
640
|
-
<p align="center">Made with
|
|
638
|
+
<p align="center">Made with ▶ by <a href="https://github.com/rakku-kundev">@rakku-kundev</a></p>
|
|
641
639
|
<p align="center">
|
|
642
640
|
<a href="https://github.com/rakku-kundev/rakku-baileys">GitHub</a> •
|
|
643
641
|
<a href="https://www.npmjs.com/package/@rakku-kun/baileys">npm</a> •
|
|
@@ -648,5 +646,5 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
648
646
|
|
|
649
647
|
### ✦ Official Links & Support
|
|
650
648
|
|
|
651
|
-
*
|
|
652
|
-
*
|
|
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.10",
|
|
5
5
|
"description": "💧 Rakku Baileys - WhatsApp Multi-Device Library with intelligent @lid/@jid mapping",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
"lid-mapping",
|
|
15
15
|
"jid-resolution"
|
|
16
16
|
],
|
|
17
|
-
"homepage": "https://
|
|
18
|
-
"repository": {
|
|
19
|
-
"url": "https://github.com/rakkudev/rakku-baileys.git"
|
|
20
|
-
},
|
|
17
|
+
"homepage": "https://whatsapp.com/channel/0029Vb6fyiS7z4kcAZUBWx43",
|
|
21
18
|
"license": "MIT",
|
|
22
19
|
"author": "rakku <hanzthespike@gmail.com>",
|
|
23
20
|
"main": "./index.cjs",
|