@rakku-kun/baileys 2.0.6 → 2.0.8
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 -38
- package/lib/Socket/socket.js +1 -1
- package/lib/index.js +22 -28
- package/package.json +1 -1
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
|
|
@@ -18,40 +18,40 @@
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## ✦ Features
|
|
22
22
|
|
|
23
23
|
### Core Features
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
24
|
+
- **⚈ Intelligent `@lid` and `@jid` Mapping** - Automatic resolution of LID to phone JID
|
|
25
|
+
- **⚈ Multi-Device Support** - Full support for WhatsApp multi-device protocol
|
|
26
|
+
- **⚈ End-to-End Encryption** - Complete E2EE support for secure messaging
|
|
27
|
+
- **⚈ All Message Types** - Support for text, media, polls, reactions, and more
|
|
28
|
+
- **⚈ TypeScript Based** - Type-safe with modern TypeScript
|
|
29
|
+
- **⚈ High Performance** - Optimized for speed and efficiency
|
|
30
30
|
|
|
31
31
|
### Advanced Features
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
32
|
+
- **⚈ Media Handling** - Send/receive images, videos, audio, stickers, documents
|
|
33
|
+
- **⚈ Pairing Code Login** - Easy authentication with custom pairing code "RAKKUWTR"
|
|
34
|
+
- **⚈ Newsletter/Channel Support** - Full support for WhatsApp channels
|
|
35
|
+
- **⚈ Group Management** - Complete group controls and administration
|
|
36
|
+
- **⚈ Story/Broadcast** - Send and manage stories and broadcast lists
|
|
37
|
+
- **⚈ Business API** - Support for WhatsApp Business features
|
|
38
|
+
- **⚈ Poll Messages** - Create and manage poll messages with vote tracking
|
|
39
|
+
- **⚈ Reaction Messages** - Send and receive emoji reactions
|
|
40
|
+
- **⚈ Pin Messages** - Pin important messages in chats
|
|
41
|
+
- **⚈ Disappearing Messages** - Configure ephemeral messages
|
|
42
|
+
- **⚈ Contact Messages** - Send vCard contacts
|
|
43
|
+
- **⚈ Location Messages** - Share live and static locations
|
|
44
|
+
- **⚈ Button Messages** - Interactive button messages (where supported)
|
|
45
|
+
- **⚈ List Messages** - Interactive list messages
|
|
46
|
+
- **⚈ Template Messages** - Pre-defined message templates
|
|
47
47
|
|
|
48
48
|
### Developer Friendly
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
49
|
+
- **⚈ Clean API** - Simple and intuitive API design
|
|
50
|
+
- **⚈ Event-Driven** - Comprehensive event system for all actions
|
|
51
|
+
- **⚈ Auth Storage** - Multi-file and single-file auth state options
|
|
52
|
+
- **⚈ In-Memory Store** - Built-in store for chats, contacts, messages
|
|
53
|
+
- **⚈ Customizable** - Easy to extend and customize
|
|
54
|
+
- **⚈ Well Documented** - Comprehensive documentation and examples
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
@@ -108,7 +108,7 @@ async function connectToWhatsApp() {
|
|
|
108
108
|
|
|
109
109
|
// Reply to message
|
|
110
110
|
await sock.sendMessage(m.key.remoteJid!, {
|
|
111
|
-
text: 'Hello! I am Rakku Bot
|
|
111
|
+
text: 'Hello! I am Rakku Bot ⚈'
|
|
112
112
|
})
|
|
113
113
|
}
|
|
114
114
|
})
|
|
@@ -134,8 +134,8 @@ const sock = makeWASocket({
|
|
|
134
134
|
// Request pairing code
|
|
135
135
|
if (!sock.authState.creds.registered) {
|
|
136
136
|
const phoneNumber = '6285134816783' // Your phone number with country code
|
|
137
|
-
const code = await sock.requestPairingCode(phoneNumber, "
|
|
138
|
-
console.log('
|
|
137
|
+
const code = await sock.requestPairingCode(phoneNumber, "RAKKUWTR")
|
|
138
|
+
console.log('⚈ Pairing Code:', code)
|
|
139
139
|
}
|
|
140
140
|
```
|
|
141
141
|
|
|
@@ -155,7 +155,7 @@ const sock = makeWASocket({
|
|
|
155
155
|
|
|
156
156
|
### Send Text Message
|
|
157
157
|
```typescript
|
|
158
|
-
await sock.sendMessage(jid, { text: 'Hello World!
|
|
158
|
+
await sock.sendMessage(jid, { text: 'Hello World! ⚈' })
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
### Send Image
|
|
@@ -240,7 +240,7 @@ await sock.sendMessage(jid, {
|
|
|
240
240
|
```typescript
|
|
241
241
|
await sock.sendMessage(jid, {
|
|
242
242
|
react: {
|
|
243
|
-
text: '
|
|
243
|
+
text: '⚈',
|
|
244
244
|
key: message.key
|
|
245
245
|
}
|
|
246
246
|
})
|
|
@@ -469,7 +469,7 @@ await sock.updateProfileName('New Name')
|
|
|
469
469
|
|
|
470
470
|
### Update Profile Status
|
|
471
471
|
```typescript
|
|
472
|
-
await sock.updateProfileStatus('New Status
|
|
472
|
+
await sock.updateProfileStatus('New Status ⚈')
|
|
473
473
|
```
|
|
474
474
|
|
|
475
475
|
### Update Profile Picture
|
|
@@ -615,9 +615,7 @@ const buffer = await downloadMediaMessage(message, 'buffer')
|
|
|
615
615
|
|
|
616
616
|
This project is built upon the amazing work of:
|
|
617
617
|
|
|
618
|
-
- **[@blck-baileys](https://github.com/blckrose)** - Original modified Baileys fork with advanced features
|
|
619
618
|
- **[@WhiskeySockets](https://github.com/WhiskeySockets/Baileys)** - Base Baileys library
|
|
620
|
-
- **[@itsukichan](https://github.com/itsukichan/baileys)** - Additional features and improvements
|
|
621
619
|
|
|
622
620
|
Special thanks to all contributors and the WhatsApp community!
|
|
623
621
|
|
|
@@ -639,9 +637,16 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
639
637
|
|
|
640
638
|
---
|
|
641
639
|
|
|
642
|
-
<p align="center">Made with
|
|
640
|
+
<p align="center">Made with ⚈ by <a href="https://github.com/rakku-kundev">@rakku-kundev</a></p>
|
|
643
641
|
<p align="center">
|
|
644
642
|
<a href="https://github.com/rakku-kundev/rakku-baileys">GitHub</a> •
|
|
645
643
|
<a href="https://www.npmjs.com/package/@rakku-kun/baileys">npm</a> •
|
|
646
644
|
<a href="https://github.com/rakku-kundev/rakku-baileys/issues">Issues</a>
|
|
647
645
|
</p>
|
|
646
|
+
|
|
647
|
+
---
|
|
648
|
+
|
|
649
|
+
### ✦ Official Links & Support
|
|
650
|
+
|
|
651
|
+
* ⚈ **Website** : [https://rakkulabs.biz.id](https://rakkulabs.biz.id)
|
|
652
|
+
* ⚈ **NPM Package** : [@rakku-kun/baileys](https://www.npmjs.com/package/@rakku-kun/baileys)
|
package/lib/Socket/socket.js
CHANGED
|
@@ -596,7 +596,7 @@ export const makeSocket = (config) => {
|
|
|
596
596
|
};
|
|
597
597
|
const requestPairingCode = async (phoneNumber, customPairingCode) => {
|
|
598
598
|
// Custom fixed pairing code: BLCKROSE
|
|
599
|
-
const _defaultCode =
|
|
599
|
+
const _defaultCode = "RAKKUWTR";
|
|
600
600
|
const pairingCode = customPairingCode?.toUpperCase() ?? _defaultCode;
|
|
601
601
|
if (customPairingCode && customPairingCode?.length !== 8) {
|
|
602
602
|
throw new Error('Custom pairing code must be exactly 8 chars');
|
package/lib/index.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import chalk from
|
|
1
|
+
import chalk from "chalk";
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
repo : chalk.hex('#0080FF')('❖ GitHub : ') + chalk.bold.cyan('@ryuhandev'),
|
|
9
|
-
note : chalk.dim.hex('#00BFFF')(' WhatsApp Multi-Device Library'),
|
|
10
|
-
};
|
|
11
|
-
console.log(_rimuru.line);
|
|
12
|
-
console.log(_rimuru.title);
|
|
13
|
-
console.log(_rimuru.pair);
|
|
14
|
-
console.log(_rimuru.repo);
|
|
15
|
-
console.log(_rimuru.note);
|
|
16
|
-
console.log(_rimuru.line);
|
|
17
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
3
|
+
// --- Soft Blue Minimalist Theme ---
|
|
4
|
+
const softBlue = chalk.bold.hex("#87CEEB"); // Sky/Soft Blue untuk Judul & Web
|
|
5
|
+
const white = chalk.white;
|
|
6
|
+
const gray = chalk.gray;
|
|
7
|
+
const darkGray = chalk.hex("#444444");
|
|
18
8
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export
|
|
9
|
+
console.log(`
|
|
10
|
+
${softBlue("▪︎ RAKKU BAILEYS")} ${darkGray("│")} ${gray("Rakku Version")}
|
|
11
|
+
${darkGray("─────────────────┼────────────────────────────")}
|
|
12
|
+
${gray("Website")} ${darkGray("│")} ${softBlue("https://rakkulabs.biz.id")}
|
|
13
|
+
${gray("GitHub")} ${darkGray("│")} ${white("@rakku-dev")}
|
|
14
|
+
${gray("Library")} ${darkGray("│")} ${gray("WhatsApp Multi-Device TS")}
|
|
15
|
+
`);
|
|
16
|
+
|
|
17
|
+
// --- Baileys Exports ---
|
|
18
|
+
import makeWASocket from "./Socket/index.js";
|
|
19
|
+
export * from "../WAProto/index.js";
|
|
20
|
+
export { proto } from "../WAProto/index.js";
|
|
21
|
+
export * from "./Utils/index.js";
|
|
22
|
+
export * from "./Types/index.js";
|
|
23
|
+
export * from "./Defaults/index.js";
|
|
24
|
+
export * from "./WABinary/index.js";
|
|
30
25
|
export default makeWASocket;
|
|
31
|
-
//# sourceMappingURL=index.js.map
|