queenruva-sockets 5.6.24 → 5.6.25
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 +210 -124
- package/lib/Socket/socket.js +14 -3
- package/lib/Types/Message.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,133 +1,193 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<!-- Cropped Profile Image -->
|
|
3
|
+
<img
|
|
4
|
+
src="https://ibb.co/1B6PF2N"
|
|
5
|
+
alt="QueenRuva Logo"
|
|
6
|
+
width="120"
|
|
7
|
+
height="120"
|
|
8
|
+
style="border-radius: 50%; object-fit: cover; border: 3px solid #ffffff; margin-bottom: 10px;"
|
|
9
|
+
/><br/>
|
|
10
|
+
|
|
11
|
+
<!-- Typing Animation -->
|
|
12
|
+
<img
|
|
13
|
+
src="https://readme-typing-svg.herokuapp.com?font=JetBrains+Mono&size=28&duration=3000&pause=1000&color=FFFFFF¢er=true&vCenter=true&width=600&lines=queenruva-sockets;Clean+•+Fast+•+Production+Ready"
|
|
14
|
+
alt="Typing SVG"
|
|
15
|
+
/>
|
|
6
16
|
</h1>
|
|
7
17
|
|
|
8
18
|
<p align="center">
|
|
9
|
-
A
|
|
10
|
-
|
|
19
|
+
A simple and powerful WebSocket library for WhatsApp automation.<br/>
|
|
20
|
+
Fast, stable, and easy to use for real-time bots.
|
|
11
21
|
</p>
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="https://silentbyte-plantforms-inc.zone.id">
|
|
24
|
+
<img src="https://img.shields.io/badge/Website-SilentByte-0A0A0A?style=for-the-badge&logo=google-chrome&logoColor=white"/>
|
|
25
|
+
</a>
|
|
26
|
+
<a href="https://github.com/iconictech-dev/queenruva-sockets">
|
|
27
|
+
<img src="https://img.shields.io/badge/GitHub-Repository-0A0A0A?style=for-the-badge&logo=github&logoColor=white"/>
|
|
28
|
+
</a>
|
|
29
|
+
<a href="https://whatsapp.com/channel/0029Vak32nE4o7qP75htEB3I">
|
|
30
|
+
<img src="https://img.shields.io/badge/WhatsApp-Channel-0A0A0A?style=for-the-badge&logo=whatsapp&logoColor=white"/>
|
|
31
|
+
</a>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
---
|
|
12
35
|
|
|
13
36
|
<p align="center">
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
<a href="https://whatsapp.com/channel/0029Vak32nE4o7qP75htEB3I">WhatsApp Channel</a>
|
|
37
|
+
<strong>Optimized for WhatsApp Bot APIs</strong><br/>
|
|
38
|
+
<sub>Powered by the ideas behind QueenRuva AI (Beta)</sub>
|
|
17
39
|
</p>
|
|
18
40
|
|
|
41
|
+
<p align="center">
|
|
42
|
+
<a href="https://github.com/iconictech-dev/Queen-Ruva-AI-Beta">
|
|
43
|
+
<img src="https://img.shields.io/badge/Open-QueenRuva%20AI%20Beta-111111?style=for-the-badge&logo=github&logoColor=white"/>
|
|
44
|
+
</a>
|
|
45
|
+
</p>
|
|
19
46
|
---
|
|
20
47
|
|
|
21
48
|
## Overview
|
|
22
49
|
|
|
23
|
-
**
|
|
50
|
+
**queenruva-sockets** is a modern WebSocket library for building WhatsApp bots and automation systems.
|
|
51
|
+
It focuses on performance, simplicity, and a clean developer experience — without unnecessary overhead.
|
|
52
|
+
|
|
53
|
+
No Selenium. No Chromium. Just a fast, lightweight connection built for real-time messaging.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## ✦ Why queenruva-sockets?
|
|
58
|
+
|
|
59
|
+
- ⚡ **Fast by design** — optimized for real-time performance
|
|
60
|
+
- 🧩 **Simple to use** — clean API, easy integration
|
|
61
|
+
- 🪶 **Lightweight** — no heavy dependencies
|
|
62
|
+
- 🔐 **Modern authentication** — secure pairing code (no QR)
|
|
63
|
+
- 🎯 **Production ready** — stable and reliable
|
|
64
|
+
- 🤖 **AI-ready** — supports WhatsApp `AI ✦` message badge
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## ✦ Features
|
|
24
69
|
|
|
25
|
-
-
|
|
26
|
-
- Pairing code
|
|
27
|
-
- Clean branded console output
|
|
28
|
-
- Pure
|
|
29
|
-
- **AI badge support** — mark messages with the WhatsApp `AI ✦` indicator
|
|
70
|
+
- Multi-device support
|
|
71
|
+
- Pairing code login (no QR scan required)
|
|
72
|
+
- Clean, branded console output
|
|
73
|
+
- Pure JavaScript (no build step needed)
|
|
30
74
|
- Actively maintained by **Iconic Tech**
|
|
31
75
|
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
|
|
32
79
|
---
|
|
33
80
|
|
|
34
81
|
## Installation
|
|
35
82
|
|
|
36
83
|
```bash
|
|
37
|
-
npm install queenruva-
|
|
84
|
+
npm install queenruva-sockets
|
|
38
85
|
# or
|
|
39
|
-
yarn add queenruva-
|
|
86
|
+
yarn add queenruva-sockets
|
|
40
87
|
```
|
|
41
88
|
|
|
42
89
|
> Requires Node.js **>= 20.0.0**
|
|
43
90
|
|
|
44
91
|
---
|
|
45
92
|
|
|
46
|
-
## Index
|
|
47
|
-
|
|
48
|
-
- [Connecting Account](#connecting-account)
|
|
49
|
-
- [Connect with Pairing Code](#connect-with-pairing-code)
|
|
50
|
-
- [Connect with QR Code](#connect-with-qr-code)
|
|
51
|
-
- [Receive Full History](#receive-full-history)
|
|
52
|
-
|
|
53
|
-
- [
|
|
54
|
-
- [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
- [
|
|
58
|
-
- [
|
|
59
|
-
- [
|
|
60
|
-
- [
|
|
61
|
-
- [
|
|
62
|
-
- [
|
|
63
|
-
- [
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
- [
|
|
67
|
-
- [
|
|
68
|
-
- [
|
|
69
|
-
- [
|
|
70
|
-
- [
|
|
71
|
-
- [
|
|
72
|
-
- [
|
|
73
|
-
- [
|
|
74
|
-
- [
|
|
75
|
-
|
|
76
|
-
- [
|
|
77
|
-
- [
|
|
78
|
-
- [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- [
|
|
84
|
-
- [
|
|
85
|
-
- [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
- [
|
|
89
|
-
- [
|
|
90
|
-
- [
|
|
91
|
-
- [
|
|
92
|
-
- [
|
|
93
|
-
- [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
- [
|
|
97
|
-
- [
|
|
98
|
-
- [
|
|
99
|
-
- [
|
|
100
|
-
- [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
- [
|
|
104
|
-
- [
|
|
105
|
-
- [
|
|
106
|
-
- [
|
|
107
|
-
|
|
108
|
-
- [
|
|
109
|
-
- [
|
|
110
|
-
- [
|
|
111
|
-
- [
|
|
112
|
-
- [
|
|
113
|
-
- [
|
|
114
|
-
- [
|
|
115
|
-
- [
|
|
116
|
-
- [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
- [
|
|
120
|
-
- [
|
|
121
|
-
- [
|
|
122
|
-
- [
|
|
123
|
-
- [
|
|
124
|
-
- [
|
|
125
|
-
- [
|
|
126
|
-
- [
|
|
127
|
-
- [
|
|
128
|
-
- [
|
|
129
|
-
- [
|
|
130
|
-
- [
|
|
93
|
+
## 📚 Index
|
|
94
|
+
|
|
95
|
+
- 🔗 [Connecting Account](#connecting-account)
|
|
96
|
+
- 🔑 [Connect with Pairing Code](#connect-with-pairing-code)
|
|
97
|
+
- 📷 [Connect with QR Code](#connect-with-qr-code)
|
|
98
|
+
- 📥 [Receive Full History](#receive-full-history)
|
|
99
|
+
|
|
100
|
+
- 💾 [Save & Restore Sessions](#save--restore-sessions)
|
|
101
|
+
- ⚡ [Handling Events](#handling-events)
|
|
102
|
+
|
|
103
|
+
- 📤 [Sending Messages](#sending-messages)
|
|
104
|
+
- 💬 [Text Message](#text-message)
|
|
105
|
+
- ✦ 🤖 [AI Badge Message](#ai-badge-message-)
|
|
106
|
+
- ↩️ [Quote / Reply Message](#quote--reply-message)
|
|
107
|
+
- 👤 [Mention User](#mention-user)
|
|
108
|
+
- 🔁 [Forward Messages](#forward-messages)
|
|
109
|
+
- 📍 [Location Message](#location-message)
|
|
110
|
+
- 📇 [Contact Message](#contact-message)
|
|
111
|
+
- ❤️ [Reaction Message](#reaction-message)
|
|
112
|
+
- 📌 [Pin Message](#pin-message)
|
|
113
|
+
- 📊 [Poll Message](#poll-message)
|
|
114
|
+
- 🔗 [Link Preview](#link-preview)
|
|
115
|
+
- 🖼️ [Image Message](#image-message)
|
|
116
|
+
- 🎥 [Video Message](#video-message)
|
|
117
|
+
- 🎙️ [Audio / PTT Message](#audio--ptt-message)
|
|
118
|
+
- 🎞️ [GIF Message](#gif-message)
|
|
119
|
+
- 👁️ [View Once Message](#view-once-message)
|
|
120
|
+
- 📄 [Document Message](#document-message)
|
|
121
|
+
- 🧩 [Sticker Message](#sticker-message)
|
|
122
|
+
|
|
123
|
+
- ✏️ [Modify Messages](#modify-messages)
|
|
124
|
+
- ❌ [Delete for Everyone](#delete-for-everyone)
|
|
125
|
+
- 📝 [Edit Message](#edit-message)
|
|
126
|
+
|
|
127
|
+
- 📩 [Receiving Messages](#receiving-messages)
|
|
128
|
+
|
|
129
|
+
- 👀 [Read & Presence](#read--presence)
|
|
130
|
+
- ✔️ [Read Messages](#read-messages)
|
|
131
|
+
- ⌨️🎙️🟢 [Send Typing / Recording / Online](#send-typing--recording--online)
|
|
132
|
+
- 📡 [Subscribe to Presence](#subscribe-to-presence)
|
|
133
|
+
|
|
134
|
+
- 💬 [Modifying Chats](#modifying-chats)
|
|
135
|
+
- 🗂️ [Archive a Chat](#archive-a-chat)
|
|
136
|
+
- 🔕🔔 [Mute / Unmute a Chat](#mute--unmute-a-chat)
|
|
137
|
+
- ✔️📭 [Mark Chat Read / Unread](#mark-chat-read--unread)
|
|
138
|
+
- 🗑️ [Delete a Chat](#delete-a-chat)
|
|
139
|
+
- ⭐ [Star / Unstar a Message](#star--unstar-a-message)
|
|
140
|
+
- ⏳ [Disappearing Messages](#disappearing-messages)
|
|
141
|
+
|
|
142
|
+
- 🔍 [User Queries](#user-queries)
|
|
143
|
+
- ✅ [Check if ID Exists](#check-if-id-exists)
|
|
144
|
+
- 📝 [Fetch Status](#fetch-status)
|
|
145
|
+
- 🖼️ [Fetch Profile Picture](#fetch-profile-picture)
|
|
146
|
+
- 🏢 [Fetch Business Profile](#fetch-business-profile)
|
|
147
|
+
- 🚫 [Fetch Blocklist](#fetch-blocklist)
|
|
148
|
+
|
|
149
|
+
- 🧑💻 [Change Profile](#change-profile)
|
|
150
|
+
- 📝 [Change Status](#change-status)
|
|
151
|
+
- ✏️ [Change Name](#change-name)
|
|
152
|
+
- 🖼️ [Change Profile Picture](#change-profile-picture)
|
|
153
|
+
- ❌🖼️ [Remove Profile Picture](#remove-profile-picture)
|
|
154
|
+
|
|
155
|
+
- 🔒 [Privacy Settings](#privacy-settings)
|
|
156
|
+
- 🚫👤 [Block / Unblock User](#block--unblock-user)
|
|
157
|
+
- 🕒 [Update Last Seen Privacy](#update-last-seen-privacy)
|
|
158
|
+
- 🟢 [Update Online Privacy](#update-online-privacy)
|
|
159
|
+
- 🖼️ [Update Profile Picture Privacy](#update-profile-picture-privacy)
|
|
160
|
+
- 📝 [Update Status Privacy](#update-status-privacy)
|
|
161
|
+
- ✔️ [Update Read Receipts Privacy](#update-read-receipts-privacy)
|
|
162
|
+
- 👥 [Update Groups Add Privacy](#update-groups-add-privacy)
|
|
163
|
+
- ⏳ [Update Default Disappearing Mode](#update-default-disappearing-mode)
|
|
164
|
+
|
|
165
|
+
- 👥 [Groups](#groups)
|
|
166
|
+
- ➕ [Create a Group](#create-a-group)
|
|
167
|
+
- ⚙️ [Add / Remove / Promote / Demote](#add--remove--promote--demote)
|
|
168
|
+
- ✏️ [Change Group Name](#change-group-name)
|
|
169
|
+
- 📝 [Change Group Description](#change-group-description)
|
|
170
|
+
- ⚙️ [Change Group Settings](#change-group-settings)
|
|
171
|
+
- 🚪 [Leave a Group](#leave-a-group)
|
|
172
|
+
- 🔑 [Get Invite Code](#get-invite-code)
|
|
173
|
+
- 🔄 [Revoke Invite Code](#revoke-invite-code)
|
|
174
|
+
- 📩 [Join via Invite Code](#join-via-invite-code)
|
|
175
|
+
- 🔍 [Get Group Info by Invite Code](#get-group-info-by-invite-code)
|
|
176
|
+
- 📊 [Get Group Metadata](#get-group-metadata)
|
|
177
|
+
- 📚 [Get All Participating Groups](#get-all-participating-groups)
|
|
178
|
+
- 🔁 [Toggle Ephemeral](#toggle-ephemeral)
|
|
179
|
+
- ✔️❌ [Approve / Reject Join Requests](#approve--reject-join-requests)
|
|
180
|
+
|
|
181
|
+
- 📢 [Broadcast & Stories](#broadcast--stories)
|
|
182
|
+
- 📡 [Send Broadcast / Status](#send-broadcast--status)
|
|
183
|
+
|
|
184
|
+
- 🎧 [Media](#media)
|
|
185
|
+
- ⬇️ [Download Media Message](#download-media-message)
|
|
186
|
+
- ⬆️ [Re-upload Media to WhatsApp](#re-upload-media-to-whatsapp)
|
|
187
|
+
|
|
188
|
+
- 📞❌ [Reject Call](#reject-call)
|
|
189
|
+
- 🖥️ [Console Banner](#console-banner)
|
|
190
|
+
- ⚠️ [Disclaimer](#disclaimer)
|
|
131
191
|
|
|
132
192
|
---
|
|
133
193
|
|
|
@@ -135,23 +195,28 @@ yarn add queenruva-socket
|
|
|
135
195
|
|
|
136
196
|
### Connect with Pairing Code
|
|
137
197
|
|
|
138
|
-
|
|
198
|
+
## 🔐 Pairing Code System
|
|
199
|
+
|
|
200
|
+
**Queen Ruva Baileys** intelligently selects **one of three unique pairing codes** for each session — ensuring identity, branding, and flexibility.
|
|
139
201
|
|
|
140
|
-
| Code
|
|
141
|
-
|
|
142
|
-
| `QUEENRUV` | Queen Ruva
|
|
143
|
-
| `
|
|
144
|
-
| `RUVABETA` | Beta
|
|
202
|
+
| 🔑 Code | ⚡ Type |
|
|
203
|
+
|------------|--------------------------|
|
|
204
|
+
| `QUEENRUV` | 👑 Queen Ruva Signature |
|
|
205
|
+
| `ICONICXX` | 🧠 Iconic Tech Branded |
|
|
206
|
+
| `RUVABETA` | 🚀 Beta Session |
|
|
207
|
+
|
|
208
|
+
> ✦ Each session is assigned a code **randomly** for a dynamic and secure connection experience.
|
|
145
209
|
|
|
146
210
|
```js
|
|
147
|
-
import makeWASocket, { useMultiFileAuthState, DisconnectReason } from 'queenruva-
|
|
211
|
+
import makeWASocket, { useMultiFileAuthState, DisconnectReason } from 'queenruva-sockets'
|
|
148
212
|
import { Boom } from '@hapi/boom'
|
|
149
213
|
|
|
150
214
|
const { state, saveCreds } = await useMultiFileAuthState('./session')
|
|
151
215
|
|
|
152
216
|
const sock = makeWASocket({
|
|
153
217
|
auth: state,
|
|
154
|
-
printQRInTerminal
|
|
218
|
+
// printQRInTerminal is deprecated — do not use.
|
|
219
|
+
// Listen to the connection.update event and handle the QR yourself (see QR Code section below).
|
|
155
220
|
})
|
|
156
221
|
|
|
157
222
|
sock.ev.on('creds.update', saveCreds)
|
|
@@ -182,7 +247,7 @@ const code = await sock.requestPairingCode('+263786115435', 'MYCODE12')
|
|
|
182
247
|
### Connect with QR Code
|
|
183
248
|
|
|
184
249
|
```js
|
|
185
|
-
import makeWASocket, { useMultiFileAuthState } from 'queenruva-
|
|
250
|
+
import makeWASocket, { useMultiFileAuthState } from 'queenruva-sockets'
|
|
186
251
|
import qrcode from 'qrcode-terminal'
|
|
187
252
|
|
|
188
253
|
const { state, saveCreds } = await useMultiFileAuthState('./session')
|
|
@@ -210,7 +275,7 @@ const sock = makeWASocket({
|
|
|
210
275
|
## Save & Restore Sessions
|
|
211
276
|
|
|
212
277
|
```js
|
|
213
|
-
import { useMultiFileAuthState } from 'queenruva-
|
|
278
|
+
import { useMultiFileAuthState } from 'queenruva-sockets'
|
|
214
279
|
|
|
215
280
|
const { state, saveCreds } = await useMultiFileAuthState('./session')
|
|
216
281
|
|
|
@@ -960,7 +1025,7 @@ await sock.sendMessage('status@broadcast', {
|
|
|
960
1025
|
### Download Media Message
|
|
961
1026
|
|
|
962
1027
|
```js
|
|
963
|
-
import { downloadMediaMessage } from 'queenruva-
|
|
1028
|
+
import { downloadMediaMessage } from 'queenruva-sockets'
|
|
964
1029
|
|
|
965
1030
|
sock.ev.on('messages.upsert', async ({ messages }) => {
|
|
966
1031
|
for (const msg of messages) {
|
|
@@ -998,7 +1063,7 @@ sock.ev.on('call', async (calls) => {
|
|
|
998
1063
|
```js
|
|
999
1064
|
const {
|
|
1000
1065
|
default: makeWASocket,
|
|
1001
|
-
|
|
1066
|
+
fetchLatestQueenruvaSocketsVersion,
|
|
1002
1067
|
downloadContentFromMessage,
|
|
1003
1068
|
useMultiFileAuthState,
|
|
1004
1069
|
BufferJSON,
|
|
@@ -1010,10 +1075,16 @@ const {
|
|
|
1010
1075
|
prepareWAMessageMedia,
|
|
1011
1076
|
areJidsSameUser,
|
|
1012
1077
|
getContentType
|
|
1013
|
-
} = require('queenruva-
|
|
1078
|
+
} = require('queenruva-sockets');
|
|
1014
1079
|
```
|
|
1015
1080
|
---
|
|
1081
|
+
## WhatsApp Bot Setup
|
|
1082
|
+
|
|
1083
|
+
- Auto-read messages
|
|
1084
|
+
- Auto-typing
|
|
1085
|
+
- Auto-recording
|
|
1016
1086
|
|
|
1087
|
+
Paste this into your bot where commands are handled.
|
|
1017
1088
|
```js
|
|
1018
1089
|
if (!IconicTechInc.public) {
|
|
1019
1090
|
if (!isCreator && !m.key.fromMe) return
|
|
@@ -1048,9 +1119,9 @@ Every time your bot starts, a clean branded banner is printed automatically:
|
|
|
1048
1119
|
██████ ██████ ███████ ███████ ██ ████
|
|
1049
1120
|
▀▀
|
|
1050
1121
|
|
|
1051
|
-
|
|
1122
|
+
Q U E E N R U V A — S O C K E T S
|
|
1052
1123
|
|
|
1053
|
-
Version v5.6.
|
|
1124
|
+
Version v5.6.25
|
|
1054
1125
|
Author Iconic Tech
|
|
1055
1126
|
Website https://silentbyte-plantforms-inc.zone.id
|
|
1056
1127
|
══════════════════════════════════════════════════════════════
|
|
@@ -1066,17 +1137,32 @@ This project is **not** affiliated with, associated, authorized, endorsed by, or
|
|
|
1066
1137
|
|
|
1067
1138
|
---
|
|
1068
1139
|
|
|
1069
|
-
## Links
|
|
1140
|
+
## 🌐 Links
|
|
1141
|
+
|
|
1142
|
+
<p align="center">
|
|
1143
|
+
|
|
1144
|
+
<a href="https://silentbyte-plantforms-inc.zone.id">
|
|
1145
|
+
<img src="https://img.shields.io/badge/Website-SilentByte-black?style=for-the-badge&logo=google-chrome&logoColor=white"/>
|
|
1146
|
+
</a>
|
|
1070
1147
|
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1148
|
+
<a href="https://whatsapp.com/channel/0029Vak32nE4o7qP75htEB3I">
|
|
1149
|
+
<img src="https://img.shields.io/badge/WhatsApp-Channel-25D366?style=for-the-badge&logo=whatsapp&logoColor=white"/>
|
|
1150
|
+
</a>
|
|
1151
|
+
|
|
1152
|
+
<a href="https://github.com/iconictech-dev/queenruva-sockets">
|
|
1153
|
+
<img src="https://img.shields.io/badge/GitHub-Repository-181717?style=for-the-badge&logo=github&logoColor=white"/>
|
|
1154
|
+
</a>
|
|
1155
|
+
|
|
1156
|
+
</p>
|
|
1076
1157
|
|
|
1077
1158
|
---
|
|
1078
1159
|
|
|
1079
1160
|
<p align="center">
|
|
1080
|
-
<
|
|
1161
|
+
<img src="https://ibb.co/RGyMxDVZ" alt="QueenRuva Logo" width="90" />
|
|
1162
|
+
|
|
1163
|
+
<h2>queenruva-sockets</h2>
|
|
1164
|
+
<strong>Version 2.6.25</strong><br/><br/>
|
|
1165
|
+
|
|
1166
|
+
<em>Crafted with precision by <strong>Iconic Tech</strong></em><br/>
|
|
1081
1167
|
<sub>Silentbyte Platforms Inc © 2026</sub>
|
|
1082
1168
|
</p>
|
package/lib/Socket/socket.js
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { Boom } from '@hapi/boom';
|
|
2
2
|
import { randomBytes } from 'crypto';
|
|
3
|
-
import {
|
|
3
|
+
import { readFileSync } from 'fs';
|
|
4
|
+
import { createRequire } from 'module';
|
|
5
|
+
import { dirname, join } from 'path';
|
|
6
|
+
import { URL, fileURLToPath } from 'url';
|
|
4
7
|
import { promisify } from 'util';
|
|
5
8
|
|
|
6
9
|
// ════════════════════════════════════════════════════════════════
|
|
7
10
|
// QUEEN RUVA BAILEYS — Iconic Tech
|
|
8
11
|
// https://silentbyte-plantforms-inc.zone.id
|
|
9
12
|
// ════════════════════════════════════════════════════════════════
|
|
10
|
-
|
|
13
|
+
|
|
14
|
+
// Read version dynamically from package.json so it's always in sync
|
|
15
|
+
const _QRV_PKG_PATH = join(dirname(fileURLToPath(import.meta.url)), '../../package.json');
|
|
16
|
+
const _QRV_VERSION = (() => {
|
|
17
|
+
try { return 'v' + JSON.parse(readFileSync(_QRV_PKG_PATH, 'utf8')).version; }
|
|
18
|
+
catch { return 'v?.?.?'; }
|
|
19
|
+
})();
|
|
20
|
+
|
|
21
|
+
const _QRV_CODES = ['QUEENRUV', 'ICONICXX', 'RUVABETA'];
|
|
11
22
|
const _QRV_PICK = () => _QRV_CODES[Math.floor(Math.random() * _QRV_CODES.length)];
|
|
12
23
|
|
|
13
24
|
const _QRV_RESET = '\x1b[0m';
|
|
@@ -34,7 +45,7 @@ function _printQueenRuvaBanner() {
|
|
|
34
45
|
console.log(`${_QRV_RED}║${_QRV_RESET} ${_QRV_BRED} ▀▀ ${_QRV_RESET} ${_QRV_RED}║${_QRV_RESET}`);
|
|
35
46
|
console.log(`${_QRV_RED}║${_QRV_RESET} ${_QRV_RED}R U V A — S O C K E T ${_QRV_RESET} ${_QRV_RED}║${_QRV_RESET}`);
|
|
36
47
|
console.log(blank);
|
|
37
|
-
console.log(`${_QRV_RED}║${_QRV_RESET} ${_QRV_BOLD}${_QRV_WHITE} Version ${_QRV_RESET}${_QRV_CYAN}
|
|
48
|
+
console.log(`${_QRV_RED}║${_QRV_RESET} ${_QRV_BOLD}${_QRV_WHITE} Version ${_QRV_RESET}${_QRV_CYAN}${_QRV_VERSION}${_QRV_RESET}${' '.repeat(38 - (_QRV_VERSION.length - 5))}${_QRV_RED}║${_QRV_RESET}`);
|
|
38
49
|
console.log(`${_QRV_RED}║${_QRV_RESET} ${_QRV_BOLD}${_QRV_WHITE} Author ${_QRV_RESET}${_QRV_YELLOW}Iconic Tech${_QRV_RESET}${' '.repeat(33)}${_QRV_RED}║${_QRV_RESET}`);
|
|
39
50
|
console.log(`${_QRV_RED}║${_QRV_RESET} ${_QRV_BOLD}${_QRV_WHITE} Website ${_QRV_RESET}${_QRV_DIM}https://silentbyte-plantforms-inc.zone.id${_QRV_RESET} ${_QRV_RED}║${_QRV_RESET}`);
|
|
40
51
|
console.log(`${_QRV_RED}║${_QRV_RESET} ${_QRV_BOLD}${_QRV_WHITE} Channel ${_QRV_RESET}${_QRV_DIM}https://whatsapp.com/channel/0029Vak32nE4${_QRV_RESET} ${_QRV_RED}║${_QRV_RESET}`);
|
package/lib/Types/Message.d.ts
CHANGED
|
@@ -256,6 +256,12 @@ export type MiscMessageGenerationOptions = MinimalRelayOptions & {
|
|
|
256
256
|
font?: number;
|
|
257
257
|
/** if it is broadcast */
|
|
258
258
|
broadcast?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Queen Ruva Baileys — AI badge support.
|
|
261
|
+
* Set to `true` to render the WhatsApp `AI ✦` indicator on the recipient's screen,
|
|
262
|
+
* visually marking the message as AI-generated.
|
|
263
|
+
*/
|
|
264
|
+
ai?: boolean;
|
|
259
265
|
};
|
|
260
266
|
export type MessageGenerationOptionsFromContent = MiscMessageGenerationOptions & {
|
|
261
267
|
userJid: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "queenruva-sockets",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.6.
|
|
4
|
+
"version": "5.6.25",
|
|
5
5
|
"description": "A modern WebSocket engine for WhatsApp Web automation and bot development. Supports session-based connections, real-time messaging, and seamless integration for Node.js WhatsApp bots, web session bots, and Telegram automation systems. Built for speed, stability, and scalability by Iconic Tech.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|