Compare commits

...
5 Commits
Author SHA1 Message Date
devlikepro 52222a6b98 [core] 2026.2.1
Release / WEBJS - chrome - amd64 - chrome (push) Waiting to run
Release / WEBJS - chromium - amd64 - latest (push) Waiting to run
Release / WEBJS - chromium - linux/arm64 - arm (push) Waiting to run
Release / GOWS - none - amd64 - gows (push) Waiting to run
Release / GOWS - none - linux/arm64 - gows-arm (push) Waiting to run
Release / NOWEB - none - amd64 - noweb (push) Waiting to run
Release / NOWEB - none - linux/arm64 - noweb-arm (push) Waiting to run
2026-02-02 14:10:58 +07:00
devlikepro 99a0a19d8c [core] NOWEB - fix send image using proxy
fix #1859
2026-02-02 14:10:58 +07:00
devlikepro 48ed33bc94 [core] Up WEBJS
Fix GET groups internal error
 - fix #1860

Fix Send message to channel - fix #1863

Fix contact update - fix #1839

[WEBJS] - Get groups count and Get groups failed fix #1879 fix #1873
2026-02-02 14:10:57 +07:00
devlikepro b234e134bf [core] GOWS - exclude all AppState events 2026-02-02 14:10:57 +07:00
devlikepro f6004fd294 [core] openapi - POST /api/{session}/presence chatId param
fix #1842
2026-02-02 14:10:57 +07:00
9 changed files with 29 additions and 26 deletions

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ up-noweb-libsignal:
yarn up libsignal@github:devlikeapro/libsignal-node#fork-master
up-webjs:
yarn up whatsapp-web.js@github:devlikeapro/whatsapp-web.js#fork-main-2025-12-17
yarn up whatsapp-web.js@github:devlikeapro/whatsapp-web.js#fork-main-2026-02-01
start-proxy:
docker run --rm -d --name squid-container -e TZ=UTC -p 3128:3128 ubuntu/squid:5.2-22.04_beta
+1 -1
View File
@@ -111,7 +111,7 @@
"ulid": "^2.3.0",
"undici": "^7.16.0",
"uniqid": "^5.4.0",
"whatsapp-web.js": "github:devlikeapro/whatsapp-web.js#fork-main-2025-12-17",
"whatsapp-web.js": "github:devlikeapro/whatsapp-web.js#fork-main-2026-02-01",
"write-file-atomic": "^6.0.0",
"yaml": "^2.7.1"
},
+10 -6
View File
@@ -234,9 +234,11 @@ enum WhatsMeowEvent {
CALL_TERMINATE = 'events.CallTerminate',
CALL_OFFER_NOTICE = 'events.CallOfferNotice',
// Other
APP_STATE = 'events.AppState',
HISTORY_SYNC = 'events.HistorySync',
CONTACT = 'events.Contact',
AppState = 'events.AppState',
AppStateSyncComplete = 'AppStateSyncComplete',
AppStateSyncError = 'AppStateSyncError',
HistorySync = 'events.HistorySync',
Contact = 'events.Contact',
}
export interface GowsConfig {
@@ -339,9 +341,11 @@ export class WhatsappSessionGoWSCore extends WhatsappSession {
// https://github.com/devlikeapro/waha/issues/1826
// TODO: we need to make it more dynamic
const exclude = [
WhatsMeowEvent.APP_STATE,
WhatsMeowEvent.HISTORY_SYNC,
WhatsMeowEvent.CONTACT,
WhatsMeowEvent.AppState,
WhatsMeowEvent.AppStateSyncComplete,
WhatsMeowEvent.AppStateSyncError,
WhatsMeowEvent.HistorySync,
WhatsMeowEvent.Contact,
];
const request = new messages.StreamEventsRequest({
session: this.session,
+2 -4
View File
@@ -355,10 +355,8 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
}
return {
agent: agents?.socket,
// Baileys types still expect a Node https.Agent here,
// but 'undici' fetch requires a Dispatcher.
// Cast keeps the compiler satisfied while we pass the ProxyAgent at runtime.
fetchAgent: agents?.fetch as unknown as Agent,
// Baileys media upload uses Node https.request in Node runtime.
fetchAgent: agents?.fetch as Agent,
auth: state,
printQRInTerminal: false,
browser: browser,
+1 -2
View File
@@ -1,7 +1,6 @@
import { Agent } from 'https';
import type { Dispatcher } from 'undici';
export interface Agents {
socket: Agent;
fetch: Dispatcher;
fetch: Agent;
}
+3 -2
View File
@@ -1,6 +1,5 @@
import { HttpsProxyAgent } from 'https-proxy-agent';
import { URL } from 'url';
import { ProxyAgent } from 'undici';
import { WhatsappConfigService } from '../config.service';
import { ProxyConfig } from '../structures/sessions.dto';
@@ -72,7 +71,9 @@ export function createAgentProxy(proxyConfig: ProxyConfig): Agents | undefined {
);
const socketAgent = new HttpsProxyAgent(url);
const fetchAgent = new ProxyAgent({ uri: url });
// Baileys media upload uses Node.js https.request in Node runtime,
// so fetchAgent must be a Node https.Agent (ProxyAgent from undici won't work).
const fetchAgent = new HttpsProxyAgent(url);
return { socket: socketAgent, fetch: fetchAgent };
}
+5 -4
View File
@@ -1,4 +1,4 @@
import { ApiProperty } from '@nestjs/swagger';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { WAHAPresenceStatus } from './enums.dto';
@@ -28,9 +28,10 @@ export class WAHAChatPresences {
export class WAHASessionPresence {
presence: WAHAPresenceStatus;
@ApiProperty({
description: 'Chat ID - either group id or contact id',
@ApiPropertyOptional({
description:
'Chat ID - either group id or contact id. Required for chat-related presence statuses; omit for ONLINE/OFFLINE.',
example: '11111111111@c.us',
})
chatId: string;
chatId?: string;
}
+1 -1
View File
@@ -44,7 +44,7 @@ function getPlatform() {
}
export const VERSION: WAHAEnvironment = {
version: '2026.1.5',
version: '2026.2.1',
engine: getEngineName(),
tier: getWAHAVersion(),
browser: getBrowser(),
+5 -5
View File
@@ -12699,7 +12699,7 @@ __metadata:
ulid: "npm:^2.3.0"
undici: "npm:^7.16.0"
uniqid: "npm:^5.4.0"
whatsapp-web.js: "github:devlikeapro/whatsapp-web.js#fork-main-2025-12-17"
whatsapp-web.js: "github:devlikeapro/whatsapp-web.js#fork-main-2026-02-01"
write-file-atomic: "npm:^6.0.0"
yaml: "npm:^2.7.1"
dependenciesMeta:
@@ -12800,9 +12800,9 @@ __metadata:
languageName: node
linkType: hard
"whatsapp-web.js@github:devlikeapro/whatsapp-web.js#fork-main-2025-12-17":
version: 1.34.3
resolution: "whatsapp-web.js@https://github.com/devlikeapro/whatsapp-web.js.git#commit=72ae41eda26b73f50232ef73f8daec5a17bf0265"
"whatsapp-web.js@github:devlikeapro/whatsapp-web.js#fork-main-2026-02-01":
version: 1.34.6
resolution: "whatsapp-web.js@https://github.com/devlikeapro/whatsapp-web.js.git#commit=506f680bd91933ae08c1000faa3e03c490f78e56"
dependencies:
"@pedroslopez/moduleraid": "npm:^5.0.2"
archiver: "npm:^5.3.1"
@@ -12820,7 +12820,7 @@ __metadata:
optional: true
unzipper:
optional: true
checksum: 10/87fa2abf0ac92390ed523d3e750c7cf9974b334e25302b35ed9de32d031dc23b229102db8202d0d2ab7c5aeb9a27e73d9fe2321f4947706af16283338487fec6
checksum: 10/23b03a08a1d53aa0c58462f9348fef2ba9bae3affc3769d3f1f51f3716aaae73521aa673d19f96ec573b0678b721cbd29bdbf22c3ad80b5f1a898a9459bfec1a
languageName: node
linkType: hard