@awangxcode/qiro-baileys 7.0.0-rc25.1 → 7.0.0-rc25.3
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/CHANGELOG.md +84 -0
- package/README.md +57 -66
- package/package.json +8 -4
- package/proto-extract/README.md +10 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
## [7.0.0-rc25] - 2026-10-23
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
- Experimental WebUI/A2UI/Rich Menu builders and socket helpers.
|
|
5
|
+
- Experimental image poll, scheduled message primitives, modern question/status/Add Yours/comment/link-preview helpers, newsletter invites, scheduled-call messages and poll-add-option helpers.
|
|
6
|
+
- WAProto schema/runtime declarations for BloksWidget, conditional reveal scheduling, poll option messages and modern metadata.
|
|
7
|
+
- Low-memory opt-in behavior and explicit VoIP adapter contract (engine not bundled).
|
|
8
|
+
|
|
9
|
+
### Validation
|
|
10
|
+
- Source-only integration. Not built, not fully type-checked, not runtime-tested and not published.
|
|
11
|
+
|
|
12
|
+
## [7.0.0-rc24] - 2026-10-23
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- Add Qiro advanced extension exports: rich-message and social-preview readers, classic button/list builders, rich-link sender, high-level album sender, status sender, and bounded in-memory store.
|
|
16
|
+
- Add single-file, built-in SQLite, PostgreSQL, MySQL/MariaDB, MongoDB, Redis, cache-manager, and generic key-value auth-state adapters with Buffer-safe serialization.
|
|
17
|
+
- Add a shared media helper pipeline for FFmpeg/ffprobe inspection, WhatsApp-oriented MP4/Opus conversion, video thumbnails, image resizing, and MP4/MOV duration reading.
|
|
18
|
+
- Add `viewOnceV2` and `viewOnceV2Extension` generation options, opt-in low-memory configuration, a WhatsApp-Web-shaped `<biz>` compatibility stanza for classic list/buttons and supported native-flow payloads, device-targeting options, wrapped-message media type resolution (including device-sent, bot-forwarded/invoked, group-mentioned, and nested wrapper shapes supported by Qiro WAProto), and full-quality profile-picture options.
|
|
19
|
+
|
|
20
|
+
### Safety and compatibility
|
|
21
|
+
- Keep low-memory mode opt-in to preserve existing behavior.
|
|
22
|
+
- Require explicit recipients for the new status helper.
|
|
23
|
+
- Reject conflicting device-targeting flags and refuse to silently recreate unreadable single-file auth state.
|
|
24
|
+
- Leave WhatsApp-internal WebUI/A2UI/RichMenu and experimental image-poll, status/question, scheduled-message, and VoIP payloads out until their proto/client behavior can be validated for Qiro's current WAProto.
|
|
25
|
+
|
|
26
|
+
## [7.0.0-rc23] - 2026-10-22
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
- Align the contact card's right border with the icon's observed single-cell width in the mobile/Pterodactyl console.
|
|
30
|
+
- Add a clearly visible gap between the icon and the bold “Baileys By” label.
|
|
31
|
+
- Preserve the compact 46-column banner, original wording, footer, pairing behavior, and bundled Qiro extensions.
|
|
32
|
+
|
|
33
|
+
## [7.0.0-rc22] - 2026-10-22
|
|
34
|
+
|
|
35
|
+
- Restored compact 46-column terminal welcome layout.
|
|
36
|
+
- Replaced custom mathematical-bold glyphs with terminal bold styling.
|
|
37
|
+
- Fixed contact-card border alignment and removed the decorative footer frame.
|
|
38
|
+
- Reduced published documentation files while retaining core README and third-party notices.
|
|
39
|
+
|
|
40
|
+
## [7.0.0-rc21] - 2026-10-22
|
|
41
|
+
|
|
42
|
+
### Improved
|
|
43
|
+
- Restore the compact RC19 console banner layout, with a fully closed footer frame and consistent line spacing.
|
|
44
|
+
- Bundle three Qiro JavaScript extensions byte-for-byte into `lib/extensions/`, copied during the package build.
|
|
45
|
+
- Add explicit package dependencies for the copied rich builder and carousel extensions.
|
|
46
|
+
|
|
47
|
+
## [7.0.0-rc20] - 2026-10-22
|
|
48
|
+
|
|
49
|
+
### Improved
|
|
50
|
+
- Give the mobile Pterodactyl console banner more horizontal and vertical spacing; keep all original welcome/contact wording and artwork.
|
|
51
|
+
- Use single-line box borders and a fully closed footer frame to reduce misalignment in browser terminals.
|
|
52
|
+
- Use `AXCODEID` as the default custom pairing code; callers can provide their own 8-character uppercase alphanumeric code or pass `null` for a random code.
|
|
53
|
+
|
|
54
|
+
## [7.0.0-rc19] - 2026-10-22
|
|
55
|
+
|
|
56
|
+
### Fixed
|
|
57
|
+
- Preserve the supplied Braille artwork without downsampling it, avoiding a distorted logo in console output.
|
|
58
|
+
- Use a fixed 46-column banner layout rather than trusting mobile Pterodactyl PTY width reports, keeping cards and borders from overflowing.
|
|
59
|
+
- Render the artwork in one consistent color instead of per-row color bands.
|
|
60
|
+
|
|
61
|
+
## [7.0.0-rc18] - Unreleased
|
|
62
|
+
|
|
63
|
+
### Fixed
|
|
64
|
+
- Add explicit `.js` extensions to all deep `libsignal/src/*` ESM imports so Node.js can resolve Curve, crypto, and protobuf modules after installation.
|
|
65
|
+
- Prevent startup-time `ERR_MODULE_NOT_FOUND` errors caused by extensionless package subpath imports.
|
|
66
|
+
|
|
67
|
+
## [7.0.0-rc17] - 2026-10-22
|
|
68
|
+
|
|
69
|
+
### Added
|
|
70
|
+
- Print an aesthetic, colorized AXCODE iD / Baileys welcome before the consuming bot's startup banner.
|
|
71
|
+
- Use the supplied full art on wide terminals and a compact logo on narrower terminals.
|
|
72
|
+
- Wrap the welcome copy in terminal-width-aware cards to avoid line overlap on smaller panels.
|
|
73
|
+
- Add `QIRO_BAILEYS_WELCOME=0` to suppress the import-time banner when needed.
|
|
74
|
+
|
|
75
|
+
## [7.0.0-rc16] - 2026-10-22
|
|
76
|
+
|
|
77
|
+
### Fixed
|
|
78
|
+
- Harden native-flow validation against malformed JavaScript inputs.
|
|
79
|
+
- Reject unsafe credential-bearing URLs during builder input.
|
|
80
|
+
- Return clear serialization errors for circular native-flow button parameters.
|
|
81
|
+
- Prevent partial mutation when adding a batch of carousel cards containing an invalid card.
|
|
82
|
+
- Add regression coverage for the validation fixes.
|
|
83
|
+
|
|
84
|
+
# 7.0.0-rc14 (2026-07-29)
|
package/README.md
CHANGED
|
@@ -1,86 +1,77 @@
|
|
|
1
|
-
<
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# ⚡ QIRO BAILEYS
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
>
|
|
7
|
-
> This package is published as `@awangxcode/qiro-baileys`. It is an unofficial fork derived from WhiskeySockets/Baileys, is not affiliated with WhatsApp or the upstream maintainers, and may include experimental additions described in `QIRO-BAILEYS-RC16.md`, `QIRO-BAILEYS-RC17.md`, and `QIRO-BAILEYS-RC18.md`. WhatsApp controls which message formats and client features are accepted/rendered; no fork can guarantee universal button or device support.
|
|
8
|
-
>
|
|
9
|
-
> Install with `npm install @awangxcode/qiro-baileys` and import with `import makeWASocket, { Button, ButtonV2, Carousel, AIRich } from '@awangxcode/qiro-baileys'`. See the experimental MessageBuilder example below and test changes against a separate account before production rollout.
|
|
10
|
-
>
|
|
11
|
-
> On import, RC17 prints a responsive, colorized AXCODE iD welcome banner before the consuming application starts its own bootstrap function. Set `QIRO_BAILEYS_WELCOME=0` to disable this output.
|
|
5
|
+
**AWANGXCODE · WHATSAPP WEB TOOLKIT**
|
|
12
6
|
|
|
7
|
+
A Baileys-based TypeScript library with experimental Qiro extensions.
|
|
13
8
|
|
|
14
|
-
>
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
> As of 7.0.0, multiple breaking changes were introduced into the library.
|
|
18
|
-
>
|
|
19
|
-
> Please check out https://whiskey.so/migrate-latest for more information.
|
|
9
|
+
<a href="https://www.npmjs.com/package/@awangxcode/qiro-baileys"><img alt="latest" src="https://img.shields.io/npm/v/%40awangxcode%2Fqiro-baileys?label=LATEST&style=for-the-badge&color=64748b" /></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/@awangxcode/qiro-baileys?activeTab=versions"><img alt="next" src="https://img.shields.io/npm/v/%40awangxcode%2Fqiro-baileys/next?label=NEXT&style=for-the-badge&color=7c3aed" /></a>
|
|
11
|
+
<a href="https://www.npmjs.com/package/@awangxcode/qiro-baileys"><img alt="downloads" src="https://img.shields.io/npm/dw/%40awangxcode%2Fqiro-baileys?style=for-the-badge&color=0891b2" /></a>
|
|
20
12
|
|
|
21
|
-
|
|
22
|
-
This is a temporary README.md, the new guide is in development and will this file will be replaced with .github/README.md (already a default on GitHub).
|
|
13
|
+
**BUILD · CONNECT · AUTOMATE**
|
|
23
14
|
|
|
24
|
-
|
|
15
|
+
</div>
|
|
25
16
|
|
|
26
|
-
|
|
17
|
+
---
|
|
27
18
|
|
|
28
|
-
|
|
19
|
+
## ✦ THE TOOLKIT
|
|
29
20
|
|
|
30
|
-
|
|
21
|
+
Unofficial distribution derived from [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys), published by **AwangXCode**.
|
|
31
22
|
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
| ◈ **BAILEYS CORE** | ⚡ **QIRO EXTENSIONS** |
|
|
24
|
+
|:--|:--|
|
|
25
|
+
| WebSocket-based WhatsApp Web integration, connection setup, events, and messaging. | Experimental helpers such as MessageBuilder, Button, ButtonV2, Carousel, and AIRich. Verify exports in your installed version. |
|
|
26
|
+
| ⌘ **TYPESCRIPT** | ◉ **MULTI-DEVICE** |
|
|
27
|
+
| Type declarations and developer-focused examples. | QR-code and pairing-code workflows documented in the guide below. |
|
|
34
28
|
|
|
35
|
-
|
|
36
|
-
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates.
|
|
37
|
-
The official WhatsApp website can be found at whatsapp.com. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners.
|
|
29
|
+
## 🚀 INSTALLATION
|
|
38
30
|
|
|
39
|
-
|
|
40
|
-
Use at your own discretion. Do not spam people with this. We discourage any stalkerware, bulk or automated messaging usage.
|
|
31
|
+
**Prerelease channel**
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- Not running Selenium or Chromium saves you like **half a gig** of ram :/
|
|
46
|
-
- Baileys supports interacting with the multi-device & web versions of WhatsApp.
|
|
47
|
-
- Thank you to [@pokearaujo](https://github.com/pokearaujo/multidevice) for writing his observations on the workings of WhatsApp Multi-Device. Also, thank you to [@Sigalor](https://github.com/sigalor/whatsapp-web-reveng) for writing his observations on the workings of WhatsApp Web and thanks to [@Rhymen](https://github.com/Rhymen/go-whatsapp/) for the __go__ implementation.
|
|
33
|
+
```bash
|
|
34
|
+
npm install @awangxcode/qiro-baileys@next
|
|
35
|
+
```
|
|
48
36
|
|
|
49
|
-
|
|
50
|
-
> The original repository had to be removed by the original author - we now continue development in this repository here.
|
|
51
|
-
This is the only official repository and is maintained by the community.
|
|
52
|
-
> **Join the Discord [here](https://discord.gg/WeJM5FP9GG)**
|
|
37
|
+
**Default npm channel**
|
|
53
38
|
|
|
54
|
-
|
|
39
|
+
```bash
|
|
40
|
+
npm install @awangxcode/qiro-baileys
|
|
41
|
+
```
|
|
55
42
|
|
|
56
|
-
|
|
57
|
-
The script covers most common use cases.
|
|
58
|
-
To run the example script, download or clone the repo and then type the following in a terminal:
|
|
59
|
-
1. ``` cd path/to/Baileys ```
|
|
60
|
-
2. ``` yarn ```
|
|
61
|
-
3. ``` yarn example ```
|
|
43
|
+
> `latest` and `next` are separate tags. Check the badges above before choosing a release.
|
|
62
44
|
|
|
63
|
-
##
|
|
45
|
+
## ⌘ QUICK START
|
|
64
46
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
47
|
+
```ts
|
|
48
|
+
import makeWASocket, {
|
|
49
|
+
Button,
|
|
50
|
+
ButtonV2,
|
|
51
|
+
Carousel,
|
|
52
|
+
AIRich
|
|
53
|
+
} from "@awangxcode/qiro-baileys"
|
|
68
54
|
```
|
|
69
55
|
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
yarn add github:WhiskeySockets/Baileys
|
|
73
|
-
```
|
|
56
|
+
Continue to the full API guide in the index below for authentication, events, media, groups, and other operations. Verify experimental exports against the release you install.
|
|
74
57
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
58
|
+
## 🧪 EXPERIMENTAL FEATURES
|
|
59
|
+
|
|
60
|
+
Experimental interactive-message helpers may behave differently across WhatsApp clients. Test changes using a separate account before production use; no particular format or universal device support is guaranteed.
|
|
61
|
+
|
|
62
|
+
## 🧭 PROJECT LINKS
|
|
63
|
+
|
|
64
|
+
| Resource | Link |
|
|
65
|
+
|:--|:--|
|
|
66
|
+
| **npm Package** | [@awangxcode/qiro-baileys](https://www.npmjs.com/package/@awangxcode/qiro-baileys) |
|
|
67
|
+
| **Upstream Source** | [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys) |
|
|
68
|
+
| **Documentation** | [baileys.wiki](https://baileys.wiki/) |
|
|
69
|
+
|
|
70
|
+
## ⚠️ DISCLAIMER
|
|
79
71
|
|
|
80
|
-
|
|
72
|
+
Qiro Baileys is unofficial and is not affiliated with WhatsApp, Meta, or the upstream maintainers. Use responsibly and comply with applicable terms and policies.
|
|
81
73
|
|
|
82
|
-
|
|
83
|
-
- [Docs](https://baileys.wiki/docs/intro/)
|
|
74
|
+
---
|
|
84
75
|
|
|
85
76
|
# Index
|
|
86
77
|
|
|
@@ -203,7 +194,7 @@ WhatsApp provides a multi-device API that allows Baileys to be authenticated as
|
|
|
203
194
|
> You can customize browser name if you connect with **QR-CODE**, with `Browser` constant, we have some browsers config, **see the [BrowsersMap type alias](https://baileys.wiki/docs/api/type-aliases/BrowsersMap/)**
|
|
204
195
|
|
|
205
196
|
```ts
|
|
206
|
-
import makeWASocket from '@
|
|
197
|
+
import makeWASocket from '@awangxcode/qiro-baileys'
|
|
207
198
|
|
|
208
199
|
const sock = makeWASocket({
|
|
209
200
|
// can provide additional config here
|
|
@@ -225,7 +216,7 @@ The phone number can't have `+` or `()` or `-`, only numbers, you must provide c
|
|
|
225
216
|
In Qiro Baileys, omitting the second argument uses the default custom code `AXCODEID`. Supply another 8-character uppercase alphanumeric code to customize it, or pass `null` when you want Baileys to generate a random code. Because `AXCODEID` is a public default in this distribution, applications that need distinct pairing codes should pass a unique code or `null`.
|
|
226
217
|
|
|
227
218
|
```ts
|
|
228
|
-
import makeWASocket from '@
|
|
219
|
+
import makeWASocket from '@awangxcode/qiro-baileys'
|
|
229
220
|
|
|
230
221
|
const sock = makeWASocket({
|
|
231
222
|
// can provide additional config here
|
|
@@ -298,7 +289,7 @@ You obviously don't want to keep scanning the QR code every time you want to con
|
|
|
298
289
|
|
|
299
290
|
So, you can load the credentials to log back in:
|
|
300
291
|
```ts
|
|
301
|
-
import makeWASocket, { useMultiFileAuthState } from '@
|
|
292
|
+
import makeWASocket, { useMultiFileAuthState } from '@awangxcode/qiro-baileys'
|
|
302
293
|
|
|
303
294
|
const { state, saveCreds } = await useMultiFileAuthState('auth_info_baileys')
|
|
304
295
|
|
|
@@ -341,7 +332,7 @@ sock.ev.on('messages.upsert', ({ messages }) => {
|
|
|
341
332
|
> For reliable serialization of the authentication state, especially when storing as JSON, always use the BufferJSON utility.
|
|
342
333
|
|
|
343
334
|
```ts
|
|
344
|
-
import makeWASocket, { DisconnectReason, useMultiFileAuthState } from '@
|
|
335
|
+
import makeWASocket, { DisconnectReason, useMultiFileAuthState } from '@awangxcode/qiro-baileys'
|
|
345
336
|
import { Boom } from '@hapi/boom'
|
|
346
337
|
|
|
347
338
|
async function connectToWhatsApp () {
|
|
@@ -423,7 +414,7 @@ sock.ev.on('messages.update', event => {
|
|
|
423
414
|
It can be used as follows:
|
|
424
415
|
|
|
425
416
|
```ts
|
|
426
|
-
import makeWASocket, { makeInMemoryStore } from '@
|
|
417
|
+
import makeWASocket, { makeInMemoryStore } from '@awangxcode/qiro-baileys'
|
|
427
418
|
// the store maintains the data of the WA connection in memory
|
|
428
419
|
// can be written out to a file & read from it
|
|
429
420
|
const store = makeInMemoryStore({ })
|
|
@@ -739,7 +730,7 @@ await sock.sendMessage(jid, {
|
|
|
739
730
|
If you want to save the media you received
|
|
740
731
|
```ts
|
|
741
732
|
import { createWriteStream } from 'fs'
|
|
742
|
-
import { downloadMediaMessage, getContentType } from '@
|
|
733
|
+
import { downloadMediaMessage, getContentType } from '@awangxcode/qiro-baileys'
|
|
743
734
|
|
|
744
735
|
sock.ev.on('messages.upsert', async ({ [m] }) => {
|
|
745
736
|
if (!m.message) return // if there is no text or media message
|
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awangxcode/qiro-baileys",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-rc25.
|
|
5
|
-
"description": "Unofficial
|
|
4
|
+
"version": "7.0.0-rc25.3",
|
|
5
|
+
"description": "Unofficial Baileys fork by AwangXCode with experimental extensions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|
|
8
|
+
"whatsapp-web",
|
|
9
|
+
"baileys",
|
|
10
|
+
"qiro-baileys",
|
|
11
|
+
"nodejs",
|
|
12
|
+
"typescript",
|
|
8
13
|
"automation"
|
|
9
14
|
],
|
|
10
|
-
"homepage": "https://github.com/WhiskeySockets/Baileys/",
|
|
11
15
|
"license": "MIT",
|
|
12
16
|
"author": "Rajeh Taher",
|
|
13
17
|
"main": "lib/index.js",
|
|
@@ -143,4 +147,4 @@
|
|
|
143
147
|
"engines": {
|
|
144
148
|
"node": ">=20.0.0"
|
|
145
149
|
}
|
|
146
|
-
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Proto Extract
|
|
2
|
+
|
|
3
|
+
Derived initially from `whatseow`'s proto extract, this version generates a predictable diff friendly protobuf. It also does not rely on a hardcoded set of modules to look for but finds all proto modules on its own and extracts the proto from there.
|
|
4
|
+
|
|
5
|
+
Thanks to [wppconnect-team](https://github.com/wppconnect-team) for the script update to make it work with the latest version of whatsapp.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
1. Install dependencies with `yarn` (or `npm install`)
|
|
9
|
+
2. `yarn start`
|
|
10
|
+
3. The script will update `../WAProto/WAProto.proto` (except if something is broken)
|