angularsockets 1.4.0 → 1.4.1

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  <h1>✨ AngularSockets</h1>
6
6
  <p><em>Custom WhatsApp library built upon Baileys — enhanced, modernized, and elegant ✨</em></p>
7
7
 
8
- <img src="https://files.catbox.moe/dmz2fn.jpg" width="300" alt="AngularSockets Banner" />
8
+ <img src="https://dabby.vercel.app/baileys.png" width="300" alt="AngularSockets Banner" />
9
9
 
10
10
  ---
11
11
 
@@ -16,7 +16,7 @@
16
16
  <a href="https://www.npmjs.com/package/angularsockets">
17
17
  <img src="https://img.shields.io/npm/dt/angularsockets?color=blueviolet&label=downloads&logo=npm" alt="npm downloads" />
18
18
  </a>
19
- <a href="https://whatsapp.com/channel/0029VapYyKEGufIpsd3Rja2C">
19
+ <a href="https://whatsapp.com/channel/0029VagQEmB002T7MWo3Sj1D">
20
20
  <img src="https://img.shields.io/badge/Join-WhatsApp%20Channel-25D366?logo=whatsapp&logoColor=white" alt="WhatsApp Channel" />
21
21
  </a>
22
22
  </p>
package/README.md CHANGED
@@ -1 +1,250 @@
1
- # angularsocketss
1
+
2
+ <div align="center">
3
+ <h1>✨ angularsockets</h1>
4
+ <p><em>Custom WhatsApp library built upon Baileys — enhanced, modernized, and elegant ✨</em></p>
5
+
6
+ <img src="https://files.catbox.moe/dmz2fn.jpg" width="300" alt="Elaina Bail Banner" />
7
+
8
+ ---
9
+
10
+ <p>
11
+ <a href="https://www.npmjs.com/package/angularsockets">
12
+ <img src="https://img.shields.io/npm/v/angularsockets?color=blueviolet&label=version&logo=npm" alt="npm version" />
13
+ </a>
14
+ <a href="https://www.npmjs.com/package/angularsockets">
15
+ <img src="https://img.shields.io/npm/dt/angularsockets?color=blueviolet&label=downloads&logo=npm" alt="npm downloads" />
16
+ </a>
17
+ <a href="https://whatsapp.com/channel/0029VapYyKEGufIpsd3Rja2C">
18
+ <img src="https://img.shields.io/badge/Join-WhatsApp%20Channel-25D366?logo=whatsapp&logoColor=white" alt="WhatsApp Channel" />
19
+ </a>
20
+ </p>
21
+ </div>
22
+
23
+ <p align="center">
24
+ <a href="https://elaina-bail.vercel.app">
25
+ <img src="https://img.shields.io/badge/Documentation-Baileys-blue?style=for-the-badge&logo=readthedocs&logoColor=white" alt="View Documentation">
26
+ </a>
27
+ </p>
28
+
29
+ ---
30
+
31
+ ## 📌 Overview
32
+
33
+ > **angularsockets** is a refined version of the Baileys library with cleaner API usage, exclusive features like album messaging, newsletter controls, and full-size profile uploads — tailored for modern WhatsApp automation needs.
34
+
35
+ ### Current Version: **1.4.0**
36
+
37
+ > **Update Information**
38
+
39
+ All update information is now redirected to the WhatsApp channel:
40
+
41
+ <a href="https://whatsapp.com/channel/0029VapYyKEGufIpsd3Rja2C">
42
+ <img src="https://img.shields.io/badge/Join-WhatsApp%20Channel-25D366?logo=whatsapp&logoColor=white" alt="WhatsApp Channel" />
43
+ </a>
44
+
45
+ ---
46
+
47
+ ## 📦 Installation
48
+
49
+ ### Via package.json Fork Baileys (NPM)
50
+
51
+ **@whiskeysockets/baileys**
52
+
53
+ ```json
54
+ "dependencies": {
55
+ "@whiskeysockets/baileys": "npm:angularsockets"
56
+ }
57
+ ```
58
+
59
+ **@adiwajsing/baileys**
60
+
61
+ ```json
62
+ "dependencies": {
63
+ "@adiwajshing/baileys": "npm:angularsockets"
64
+ }
65
+ ```
66
+
67
+ ### Or via terminal
68
+
69
+ ```bash
70
+ npm install baileys@npm:angularsockets
71
+ ```
72
+
73
+ ### Importing (for those who don't fork another repository)
74
+
75
+ **ESM**
76
+
77
+ ```javascript
78
+ import makeWASocket from 'angularsockets'
79
+ ```
80
+
81
+ **CJS**
82
+
83
+ ```javascript
84
+ const { default: makeWASocket } = require('angularsockets')
85
+ ```
86
+
87
+ ---
88
+
89
+ ## 🌟 Key Features
90
+
91
+ | Category | Description |
92
+ |----------|-------------|
93
+ | 📢 Channels | Seamlessly send messages to WhatsApp Channels |
94
+ | 🖱️ Buttons | Create interactive messages with button options and quick replies |
95
+ | 🖼️ Albums | Send grouped images or videos as an album (carousel-like format) |
96
+ | 👤 LID Grouping | Handle group operations using the latest @lid addressing style |
97
+ | 🤖 AI Message Style | Add a stylized "AI" icon to messages |
98
+ | 📷 HD Profile Pics | Upload full-size profile pictures without cropping |
99
+ | 🔐 Pairing Code | Generate custom alphanumeric pairing codes |
100
+ | 🛠️ Dev Experience | Reduced noise from logs with optimized libsignal printouts |
101
+
102
+ ---
103
+
104
+ ## 💡 Use Case Examples
105
+
106
+ <details>
107
+ <summary><strong>📬 Newsletter Control</strong></summary>
108
+
109
+ ```javascript
110
+ // Create a newsletter
111
+ await sock.newsletterCreate("Elaina Updates");
112
+
113
+ // Change description
114
+ await sock.newsletterUpdateDescription("elaina@newsletter", "Fresh updates weekly");
115
+
116
+ // Send a reaction to a channel message
117
+ await sock.newsletterReactMessage("elaina@newsletter", "175", "🔥");
118
+ ```
119
+
120
+ </details>
121
+
122
+ <details>
123
+ <summary><strong>📌 Interactive Messaging</strong></summary>
124
+
125
+ ```javascript
126
+ const buttons = [
127
+ { buttonId: 'btn1', buttonText: { displayText: 'Click Me' }, type: 1 },
128
+ { buttonId: 'btn2', buttonText: { displayText: 'Visit Site' }, type: 1 }
129
+ ];
130
+
131
+ const msg = {
132
+ text: "Choose one:",
133
+ footer: "From Elaina with love 💜",
134
+ buttons,
135
+ headerType: 1
136
+ };
137
+
138
+ await sock.sendMessage(id, msg, { quoted: null });
139
+ ```
140
+
141
+ </details>
142
+
143
+ <details>
144
+ <summary><strong>🖼️ Send Album</strong></summary>
145
+
146
+ ```javascript
147
+ const media = [
148
+ { image: { url: "https://example.com/pic1.jpg" } },
149
+ { video: { url: "https://example.com/clip.mp4" } }
150
+ ];
151
+
152
+ await sock.sendMessage(id, { album: media, caption: "Memories 💫" }, { quoted: null });
153
+ ```
154
+
155
+ </details>
156
+
157
+ <details>
158
+ <summary><strong>🔐 Pairing with Custom Code</strong></summary>
159
+
160
+ ```javascript
161
+ const code = await sock.requestPairingCode("62xxxxxxxxxx", "ELAINA01");
162
+ console.log("Your Pairing Code:", code);
163
+ ```
164
+
165
+ </details>
166
+
167
+ <details>
168
+ <summary><strong>📊 Poll Creation</strong></summary>
169
+
170
+ ```javascript
171
+ const pollMessage = {
172
+ name: "Favorite Color?",
173
+ values: ["Red", "Blue", "Green"],
174
+ selectableCount: 1
175
+ };
176
+
177
+ await sock.sendMessage(id, { poll: pollMessage });
178
+ ```
179
+
180
+ </details>
181
+
182
+ <details>
183
+ <summary><strong>📍 Location Sharing</strong></summary>
184
+
185
+ ```javascript
186
+ const locationMessage = {
187
+ degreesLatitude: 37.422,
188
+ degreesLongitude: -122.084,
189
+ name: "Googleplex",
190
+ address: "1600 Amphitheatre Pkwy, Mountain View, CA 94043"
191
+ };
192
+
193
+ await sock.sendMessage(id, { location: locationMessage });
194
+ ```
195
+
196
+ </details>
197
+
198
+ <details>
199
+ <summary><strong>👥 Group Management</strong></summary>
200
+
201
+ ```javascript
202
+ // Create group
203
+ const group = await sock.groupCreate("My New Group", [number1, number2]);
204
+
205
+ // Add participants
206
+ await sock.groupAdd(group.id, [number3, number4]);
207
+
208
+ // Change group description
209
+ await sock.groupUpdateDescription(group.id, "This is our awesome group!");
210
+ ```
211
+
212
+ </details>
213
+
214
+ ---
215
+
216
+ **Note:** Replace `id` with the actual recipient ID and `sock` with your WhatsApp socket connection variable.
217
+
218
+ ---
219
+
220
+ ## 🐞 Found a Bug?
221
+
222
+ Please contact the maintainer directly via WhatsApp:
223
+
224
+ <p align="center">
225
+ <a href="https://wa.me/263719647303" target="_blank">
226
+ <img alt="WhatsApp" src="https://img.shields.io/badge/Chat%20on%20WhatsApp-25D366?style=for-the-badge&logo=whatsapp&logoColor=white">
227
+ </a>
228
+ </p>
229
+
230
+ ---
231
+
232
+ ## 🙏 Credits
233
+
234
+ **Creator:** MR FRANK OFC
235
+
236
+ - 🌐 Website: [mrfrankofc.gleeze.com](https://mrfrankofc.gleeze.com)
237
+ - 💻 GitHub: [@mrfr8nk](https://github.com/mrfr8nk)
238
+
239
+ **Special Thanks:**
240
+ - RexyHayanais
241
+ - Nystar
242
+
243
+ > [!CAUTION]
244
+ > Built on top of the WhiskeySockets/Baileys project. All original core logic credits go to their team. angularsockets extends it with thoughtful UX and DX improvements.
245
+
246
+ ---
247
+
248
+ <div align="center">
249
+ <p>Made with 💜 by MR FRANK OFC</p>
250
+ </div>
package/lib/index.js CHANGED
@@ -8,13 +8,13 @@ console.log();
8
8
 
9
9
 
10
10
  console.log(
11
- chalk.bold.hex("#A8C7FF")("@angularsockets") + " " +
11
+ chalk.bold.hex("#A8C7FF")("Angularsockets ⚡") + " " +
12
12
  chalk.bold.hex("#7EC9FF")("WhatsApp Baileys Mod")
13
13
  );
14
14
 
15
15
 
16
16
  console.log(
17
- gradient(["#7EC9FF", "#D3B7FF"])("════════════════════════════════════════════════════")
17
+ gradient(["#7EC9FF", "#D3B7FF"])("═════════════")
18
18
  );
19
19
 
20
20
 
@@ -24,7 +24,7 @@ console.log(
24
24
 
25
25
 
26
26
  console.log(
27
- gradient(["#7EC9FF", "#D3B7FF"])("════════════════════════════════════════════════════")
27
+ gradient(["#7EC9FF", "#D3B7FF"])("═════════════")
28
28
  );
29
29
 
30
30
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angularsockets",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Custom Baileys WhatsApp API by Mr Frank",
5
5
  "keywords": [
6
6
  "baileys",