@pasqua-dev/baileys 2.8.11 → 2.8.12

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
@@ -112,6 +112,25 @@ import { makeWASocket } from '@pasqua-baileys/baileys'
112
112
  const { makeWASocket } = require('@pasqua-baileys/baileys')
113
113
  ```
114
114
 
115
+ ### Windows support
116
+
117
+ Baileys connects directly through a WebSocket; it does not require Chrome,
118
+ Selenium, or a browser process. The default browser identity now follows the
119
+ host operating system, including Windows. For a stable Windows desktop
120
+ identity, pass the WhiskeySockets-compatible preset explicitly:
121
+
122
+ ```javascript
123
+ import { Browsers, makeWASocket } from '@pasqua-dev/baileys'
124
+
125
+ const sock = makeWASocket({
126
+ browser: Browsers.windows('Desktop'),
127
+ auth: state
128
+ })
129
+ ```
130
+
131
+ Windows deployments require Node.js 20 or newer. Media thumbnail generation
132
+ also requires `ffmpeg` to be installed and available on `PATH`.
133
+
115
134
  ---
116
135
 
117
136
  ## Quick Start
@@ -45,7 +45,9 @@ export const PROCESSABLE_HISTORY_TYPES = [
45
45
  ];
46
46
  export const DEFAULT_CONNECTION_CONFIG = {
47
47
  version: version,
48
- browser: Browsers.macOS('Chrome'),
48
+ // Match the host platform by default. Callers can still provide an
49
+ // explicit browser tuple when they need a stable linked-device identity.
50
+ browser: Browsers.appropriate('Chrome'),
49
51
  waWebSocketUrl: 'wss://web.whatsapp.com/ws/chat',
50
52
  connectTimeoutMs: 20000,
51
53
  keepAliveIntervalMs: 15000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pasqua-dev/baileys",
3
- "version": "2.8.11",
3
+ "version": "2.8.12",
4
4
  "description": "Baileys is a WebSockets library for interacting with WhatsApp Web — PASQUA edition with anti-ban system, ban checker API, rich messages, interactive messages, albums and more",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",