@heavstaltech/baileys 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +27 -24
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  <img src="https://img.shields.io/badge/NPM-@heavstaltech/baileys-cb3837?style=for-the-badge&logo=npm&logoColor=white" alt="NPM" />
12
12
  </a>
13
13
  <a href="https://github.com/Promise818/HT-baileys">
14
- <img src="https://img.shields.io/badge/Version-1.0.0-2ea44f?style=for-the-badge&logo=github&logoColor=white" alt="Version" />
14
+ <img src="https://img.shields.io/badge/Version-1.0.1-2ea44f?style=for-the-badge&logo=github&logoColor=white" alt="Version" />
15
15
  </a>
16
16
  <a href="https://github.com/Promise818/HT-baileys/blob/master/LICENSE">
17
17
  <img src="https://img.shields.io/badge/License-MIT-fab005?style=for-the-badge" alt="License" />
@@ -22,9 +22,22 @@
22
22
 
23
23
  ## Introduction
24
24
 
25
- **HT-baileys** is an extended fork of the WhatsApp Web API library, maintained by **Heavstal Tech**.
25
+ **HT-baileys** is an advanced fork of the WhatsApp Web API library, engineered and maintained by **Heavstal Tech**.
26
26
 
27
- This library builds upon the stability of the original Baileys and the extended features of `baileys-pro`, offering a robust solution for enterprise-grade WhatsApp automation. It includes optimized headers for connection stability, support for custom pairing codes, and native implementation of WhatsApp Channels (Newsletters) and interactive messages.
27
+ This library builds upon the stability of the original Baileys architecture while integrating extended features required for modern, production-grade automation. It provides a robust solution for enterprise bots, featuring optimized connection headers, custom pairing code logic, and native support for WhatsApp Channels (Newsletters).
28
+
29
+ ## Features Overview
30
+
31
+ | Feature | Description |
32
+ | :--- | :--- |
33
+ | 💬 **Send Messages to Channels** | Full support for sending text and media messages to WhatsApp Channels (Newsletters). |
34
+ | 🔘 **Button & Interactive Messages** | Native support for buttons, lists, and interactive messages on both Messenger and Business API. |
35
+ | 🤖 **AI Message Icon** | Customize message appearances with an optional AI icon (`ai: true`), adding a modern touch to automated responses. |
36
+ | 🖼️ **Full-Size Profile Pictures** | Allows uploading profile pictures in their original resolution without aggressive cropping. |
37
+ | 🔑 **Custom Pairing Codes** | **Heavstal Exclusive:** Define custom alphanumeric pairing codes (e.g., `HEAVSTAL`) for branded authentication flows. |
38
+ | 🛠️ **Libsignal Fixes** | Enhanced stability with refined logs, providing cleaner output and fewer connection drops. |
39
+
40
+ ---
28
41
 
29
42
  ## Installation
30
43
 
@@ -86,7 +99,7 @@ connectToWhatsApp()
86
99
 
87
100
  ---
88
101
 
89
- ## Features & Implementation
102
+ ## Feature Implementation
90
103
 
91
104
  ### 1. Custom Pairing Code
92
105
  HT-baileys supports the definition of custom alphanumeric pairing codes, allowing for branded connection flows.
@@ -95,6 +108,8 @@ HT-baileys supports the definition of custom alphanumeric pairing codes, allowin
95
108
  if (!sock.authState.creds.registered) {
96
109
  // Ensure the number format is correct (Country Code + Number)
97
110
  const phoneNumber = "2349000000000"
111
+
112
+ // Define your branded pairing code
98
113
  const customCode = "HEAVSTAL"
99
114
 
100
115
  setTimeout(async () => {
@@ -119,12 +134,6 @@ await sock.newsletterUpdateName(channel.id, "Heavstal Tech")
119
134
  await sock.newsletterUpdateDescription(channel.id, "Official Updates")
120
135
  ```
121
136
 
122
- **Mute/Unmute**
123
- ```ts
124
- await sock.newsletterMute(channel.id)
125
- await sock.newsletterUnmute(channel.id)
126
- ```
127
-
128
137
  ### 3. Interactive Messages (Buttons & Lists)
129
138
  Native support for interactive message types, including single-select lists and call-to-action buttons.
130
139
 
@@ -142,8 +151,7 @@ const interactiveMessage = {
142
151
  sections: [{
143
152
  title: "Services",
144
153
  rows: [
145
- { header: "STATUS", title: "System Status", id: "status_check" },
146
- { header: "SUPPORT", title: "Contact Support", id: "contact_support" }
154
+ { header: "STATUS", title: "System Status", id: "status_check" }
147
155
  ]
148
156
  }]
149
157
  })
@@ -165,8 +173,7 @@ Allows sending multiple media assets (Images/Videos) grouped as a single album.
165
173
  ```ts
166
174
  const mediaContent = [
167
175
  { image: { url: "https://example.com/image1.jpg" } },
168
- { image: { url: "https://example.com/image2.jpg" } },
169
- { video: { url: "https://example.com/video.mp4" } }
176
+ { image: { url: "https://example.com/image2.jpg" } }
170
177
  ]
171
178
 
172
179
  await sock.sendMessage(jid, {
@@ -175,23 +182,19 @@ await sock.sendMessage(jid, {
175
182
  })
176
183
  ```
177
184
 
178
- ### 5. AI Message Flag
179
- Support for the `ai` property to mark messages generated by automated systems.
185
+ ---
180
186
 
181
- ```ts
182
- await sock.sendMessage(jid, {
183
- text: "Processed by AI",
184
- ai: true
185
- })
186
- ```
187
+ ## About Heavstal Tech
187
188
 
188
- ---
189
+ **Heavstal Tech** is a forward-thinking technology organization dedicated to building robust tools and ecosystems for the modern web. From automation libraries to full-stack applications, we prioritize performance, scalability, and developer experience.
190
+
191
+ 🌐 **Official Website:** [https://heavstal-tech.vercel.app](https://heavstal-tech.vercel.app)
189
192
 
190
193
  ## Disclaimer
191
194
 
192
195
  **HT-baileys** is an independent project maintained by **Heavstal Tech**. It is not affiliated with, authorized, maintained, sponsored, or endorsed by WhatsApp Inc. or Meta Platforms, Inc.
193
196
 
194
- This software is provided "as is", without warranty of any kind. Users are responsible for ensuring their usage complies with WhatsApp's Terms of Service. **Heavstal Tech** accepts no liability for account restrictions or bans resulting from the use of this library.
197
+ This software is provided "as is", without warranty of any kind. Users are responsible for ensuring their usage complies with WhatsApp's Terms of Service.
195
198
 
196
199
  ---
197
200
 
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@heavstaltech/baileys",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "The Official Heavstal Tech Modified Baileys Library",
5
5
  "keywords": [
6
- "whatsapp",
6
+ "HT-baileys",
7
7
  "heavstal-tech",
8
8
  "heavstal",
9
+ "whatsapp",
9
10
  "js-whatsapp",
10
11
  "whatsapp-api",
11
12
  "whatsapp-web",