@rakku-kun/baileys 2.0.9 → 2.0.11
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 -36
- package/package.json +2 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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
|
|
@@ -19,37 +19,37 @@
|
|
|
19
19
|
## ✦ Features
|
|
20
20
|
|
|
21
21
|
### Core Features
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
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
|
|
28
28
|
|
|
29
29
|
### Advanced Features
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
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
|
|
45
45
|
|
|
46
46
|
### Developer Friendly
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
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
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
@@ -106,7 +106,7 @@ async function connectToWhatsApp() {
|
|
|
106
106
|
|
|
107
107
|
// Reply to message
|
|
108
108
|
await sock.sendMessage(m.key.remoteJid!, {
|
|
109
|
-
text: 'Hello! I am Rakku Bot
|
|
109
|
+
text: 'Hello! I am Rakku Bot ▶'
|
|
110
110
|
})
|
|
111
111
|
}
|
|
112
112
|
})
|
|
@@ -133,7 +133,7 @@ const sock = makeWASocket({
|
|
|
133
133
|
if (!sock.authState.creds.registered) {
|
|
134
134
|
const phoneNumber = '6285134816783' // Your phone number with country code
|
|
135
135
|
const code = await sock.requestPairingCode(phoneNumber, "RAKKUWTR")
|
|
136
|
-
console.log('
|
|
136
|
+
console.log('▶ Pairing Code:', code)
|
|
137
137
|
}
|
|
138
138
|
```
|
|
139
139
|
|
|
@@ -153,7 +153,7 @@ const sock = makeWASocket({
|
|
|
153
153
|
|
|
154
154
|
### Send Text Message
|
|
155
155
|
```typescript
|
|
156
|
-
await sock.sendMessage(jid, { text: 'Hello World!
|
|
156
|
+
await sock.sendMessage(jid, { text: 'Hello World! ▶' })
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
### Send Image
|
|
@@ -238,7 +238,7 @@ await sock.sendMessage(jid, {
|
|
|
238
238
|
```typescript
|
|
239
239
|
await sock.sendMessage(jid, {
|
|
240
240
|
react: {
|
|
241
|
-
text: '
|
|
241
|
+
text: '▶',
|
|
242
242
|
key: message.key
|
|
243
243
|
}
|
|
244
244
|
})
|
|
@@ -467,7 +467,7 @@ await sock.updateProfileName('New Name')
|
|
|
467
467
|
|
|
468
468
|
### Update Profile Status
|
|
469
469
|
```typescript
|
|
470
|
-
await sock.updateProfileStatus('New Status
|
|
470
|
+
await sock.updateProfileStatus('New Status ▶')
|
|
471
471
|
```
|
|
472
472
|
|
|
473
473
|
### Update Profile Picture
|
|
@@ -635,7 +635,7 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
635
635
|
|
|
636
636
|
---
|
|
637
637
|
|
|
638
|
-
<p align="center">Made with
|
|
638
|
+
<p align="center">Made with ▶ by <a href="https://github.com/rakku-kundev">@rakku-kundev</a></p>
|
|
639
639
|
<p align="center">
|
|
640
640
|
<a href="https://github.com/rakku-kundev/rakku-baileys">GitHub</a> •
|
|
641
641
|
<a href="https://www.npmjs.com/package/@rakku-kun/baileys">npm</a> •
|
|
@@ -646,5 +646,5 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
646
646
|
|
|
647
647
|
### ✦ Official Links & Support
|
|
648
648
|
|
|
649
|
-
*
|
|
650
|
-
*
|
|
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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rakku-kun/baileys",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "2.0.11",
|
|
5
|
+
"description": "🌿 Rakku Baileys - Modern WhatsApp Multi-Device API with enhanced JID/LID mapping & clean architecture.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|
|
8
8
|
"automation",
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"jid-resolution"
|
|
16
16
|
],
|
|
17
17
|
"homepage": "https://whatsapp.com/channel/0029Vb6fyiS7z4kcAZUBWx43",
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "https://chat.whatsapp.com/FAtRFbXfZxeJISrDQ9kJaj?s=cl&p=a&ilr=0&amv=2"
|
|
21
|
-
},
|
|
22
18
|
"license": "MIT",
|
|
23
19
|
"author": "rakku <hanzthespike@gmail.com>",
|
|
24
20
|
"main": "./index.cjs",
|