Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52222a6b98 | ||
|
|
99a0a19d8c | ||
|
|
48ed33bc94 | ||
|
|
b234e134bf | ||
|
|
f6004fd294 |
No files matched your search
@@ -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
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,7 +1,6 @@
|
||||
import { Agent } from 'https';
|
||||
import type { Dispatcher } from 'undici';
|
||||
|
||||
export interface Agents {
|
||||
socket: Agent;
|
||||
fetch: Dispatcher;
|
||||
fetch: Agent;
|
||||
}
|
||||
@@ -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 };
|
||||
}
|
||||
@@ -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
@@ -44,7 +44,7 @@ function getPlatform() {
|
||||
}
|
||||
|
||||
export const VERSION: WAHAEnvironment = {
|
||||
version: '2026.1.5',
|
||||
version: '2026.2.1',
|
||||
engine: getEngineName(),
|
||||
tier: getWAHAVersion(),
|
||||
browser: getBrowser(),
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user