@awangxcode/qiro-baileys 7.0.0-rc25 → 7.0.0-rc25.2
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 +45 -66
- package/WAProto/index.js +1 -1
- 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,65 @@
|
|
|
1
|
-
<
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
<
|
|
3
|
+
<img src="https://raw.githubusercontent.com/WhiskeySockets/Baileys/refs/heads/master/Media/logo.png" alt="Baileys logo" width="96" />
|
|
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
|
+
# Qiro Baileys
|
|
12
6
|
|
|
7
|
+
**Unofficial Baileys distribution by AwangXCode**
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
> NOTICE OF BREAKING CHANGE.
|
|
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
|
+
WhatsApp Web automation library for Node.js and TypeScript, derived from WhiskeySockets/Baileys.
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
[](https://www.npmjs.com/package/@awangxcode/qiro-baileys)
|
|
12
|
+
[](https://www.npmjs.com/package/@awangxcode/qiro-baileys?activeTab=versions)
|
|
13
|
+
[](https://www.npmjs.com/package/@awangxcode/qiro-baileys)
|
|
23
14
|
|
|
24
|
-
|
|
15
|
+
</div>
|
|
25
16
|
|
|
26
|
-
|
|
17
|
+
---
|
|
27
18
|
|
|
28
|
-
|
|
19
|
+
> **Unofficial fork notice**
|
|
20
|
+
>
|
|
21
|
+
> `@awangxcode/qiro-baileys` is derived from [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys). It is not affiliated with WhatsApp, Meta, or the upstream maintainers. Experimental additions may behave differently across WhatsApp clients; no particular message format or device support is guaranteed.
|
|
29
22
|
|
|
30
|
-
|
|
23
|
+
## Installation
|
|
31
24
|
|
|
32
|
-
|
|
33
|
-
If you'd like to financially support this project, you can do so by supporting the current maintainer [here](https://purpshell.dev/sponsor).
|
|
25
|
+
Install the default npm release:
|
|
34
26
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
```bash
|
|
28
|
+
npm install @awangxcode/qiro-baileys
|
|
29
|
+
```
|
|
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
|
+
For the prerelease channel:
|
|
41
32
|
|
|
42
|
-
|
|
33
|
+
```bash
|
|
34
|
+
npm install @awangxcode/qiro-baileys@next
|
|
35
|
+
```
|
|
43
36
|
|
|
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.
|
|
37
|
+
The `latest` and `next` tags can point to different versions. Check the release channel before updating production projects.
|
|
48
38
|
|
|
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)**
|
|
39
|
+
## Quick start
|
|
53
40
|
|
|
54
|
-
|
|
41
|
+
```ts
|
|
42
|
+
import makeWASocket from "@awangxcode/qiro-baileys"
|
|
43
|
+
```
|
|
55
44
|
|
|
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 ```
|
|
45
|
+
See the API guide below for connection setup, authentication, events, messaging, media, and groups. Verify examples against the installed version.
|
|
62
46
|
|
|
63
|
-
##
|
|
47
|
+
## Qiro experimental extensions
|
|
64
48
|
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
yarn add @whiskeysockets/baileys
|
|
68
|
-
```
|
|
49
|
+
Project notes describe experimental helpers such as `Button`, `ButtonV2`, `Carousel`, `AIRich`, and `MessageBuilder`. Verify their availability in your installed version before relying on them.
|
|
69
50
|
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
yarn add github:WhiskeySockets/Baileys
|
|
73
|
-
```
|
|
51
|
+
## Project links
|
|
74
52
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
53
|
+
- [Qiro Baileys on npm](https://www.npmjs.com/package/@awangxcode/qiro-baileys)
|
|
54
|
+
- [Upstream repository](https://github.com/WhiskeySockets/Baileys)
|
|
55
|
+
- [Baileys documentation](https://baileys.wiki/)
|
|
56
|
+
|
|
57
|
+
## Responsible use
|
|
58
|
+
|
|
59
|
+
Use this package responsibly and comply with applicable WhatsApp terms and policies. WhatsApp and related marks belong to their respective owners.
|
|
79
60
|
|
|
80
|
-
|
|
61
|
+
---
|
|
81
62
|
|
|
82
|
-
- [Discord](https://discord.gg/WeJM5FP9GG)
|
|
83
|
-
- [Docs](https://baileys.wiki/docs/intro/)
|
|
84
63
|
|
|
85
64
|
# Index
|
|
86
65
|
|
|
@@ -203,7 +182,7 @@ WhatsApp provides a multi-device API that allows Baileys to be authenticated as
|
|
|
203
182
|
> 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
183
|
|
|
205
184
|
```ts
|
|
206
|
-
import makeWASocket from '@
|
|
185
|
+
import makeWASocket from '@awangxcode/qiro-baileys'
|
|
207
186
|
|
|
208
187
|
const sock = makeWASocket({
|
|
209
188
|
// can provide additional config here
|
|
@@ -225,7 +204,7 @@ The phone number can't have `+` or `()` or `-`, only numbers, you must provide c
|
|
|
225
204
|
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
205
|
|
|
227
206
|
```ts
|
|
228
|
-
import makeWASocket from '@
|
|
207
|
+
import makeWASocket from '@awangxcode/qiro-baileys'
|
|
229
208
|
|
|
230
209
|
const sock = makeWASocket({
|
|
231
210
|
// can provide additional config here
|
|
@@ -298,7 +277,7 @@ You obviously don't want to keep scanning the QR code every time you want to con
|
|
|
298
277
|
|
|
299
278
|
So, you can load the credentials to log back in:
|
|
300
279
|
```ts
|
|
301
|
-
import makeWASocket, { useMultiFileAuthState } from '@
|
|
280
|
+
import makeWASocket, { useMultiFileAuthState } from '@awangxcode/qiro-baileys'
|
|
302
281
|
|
|
303
282
|
const { state, saveCreds } = await useMultiFileAuthState('auth_info_baileys')
|
|
304
283
|
|
|
@@ -341,7 +320,7 @@ sock.ev.on('messages.upsert', ({ messages }) => {
|
|
|
341
320
|
> For reliable serialization of the authentication state, especially when storing as JSON, always use the BufferJSON utility.
|
|
342
321
|
|
|
343
322
|
```ts
|
|
344
|
-
import makeWASocket, { DisconnectReason, useMultiFileAuthState } from '@
|
|
323
|
+
import makeWASocket, { DisconnectReason, useMultiFileAuthState } from '@awangxcode/qiro-baileys'
|
|
345
324
|
import { Boom } from '@hapi/boom'
|
|
346
325
|
|
|
347
326
|
async function connectToWhatsApp () {
|
|
@@ -423,7 +402,7 @@ sock.ev.on('messages.update', event => {
|
|
|
423
402
|
It can be used as follows:
|
|
424
403
|
|
|
425
404
|
```ts
|
|
426
|
-
import makeWASocket, { makeInMemoryStore } from '@
|
|
405
|
+
import makeWASocket, { makeInMemoryStore } from '@awangxcode/qiro-baileys'
|
|
427
406
|
// the store maintains the data of the WA connection in memory
|
|
428
407
|
// can be written out to a file & read from it
|
|
429
408
|
const store = makeInMemoryStore({ })
|
|
@@ -739,7 +718,7 @@ await sock.sendMessage(jid, {
|
|
|
739
718
|
If you want to save the media you received
|
|
740
719
|
```ts
|
|
741
720
|
import { createWriteStream } from 'fs'
|
|
742
|
-
import { downloadMediaMessage, getContentType } from '@
|
|
721
|
+
import { downloadMediaMessage, getContentType } from '@awangxcode/qiro-baileys'
|
|
743
722
|
|
|
744
723
|
sock.ev.on('messages.upsert', async ({ [m] }) => {
|
|
745
724
|
if (!m.message) return // if there is no text or media message
|
package/WAProto/index.js
CHANGED
|
@@ -97687,7 +97687,7 @@ export const proto = $root.proto = (() => {
|
|
|
97687
97687
|
|
|
97688
97688
|
/* Runtime extensions for the modern, still-gated WhatsApp wire fields used by RC25. */
|
|
97689
97689
|
(function installQiroModernProto($root, $Reader, $Writer, $util, $protobuf) {
|
|
97690
|
-
const proto = $root
|
|
97690
|
+
const proto = $root;
|
|
97691
97691
|
const Message = proto.Message;
|
|
97692
97692
|
const captureBytes = (r, l) => {
|
|
97693
97693
|
if (r instanceof $Reader) {
|
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.2",
|
|
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)
|