Jump to content
View in the app

A better way to browse. Learn more.

DoniaWeB

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
     

Whatsapp Gateway | Multi Device v12.0.1

Featured Replies

  • Replies 7.5k
  • Views 798.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Magd Almuntaser
    Magd Almuntaser

    What's new in version 11.0.0 (so far): - Added Chat System (Customer Service). - Fixed Connection problems With WhatsApp. - Fixed Generate QR Via API. - Fixed Delete Sections From Edit List Page. - Fi

  • Magd Almuntaser
    Magd Almuntaser

    Version 11.0.1 has been released What's new in version 11.0.1: - Fixed Stop/Start AI In Conversations. - Fixed Chat Date (Database). - Fixed Migrate To Database. - Fixed Plans Page.

  • Magd Almuntaser
    Magd Almuntaser

    English Bexa AI will be released in the coming days, very soon. Everyone will be amazed by its speed, intelligence, and the way it interacts with users. It will not compete with ChatGPT, Gemini, or De

Most Helpful Posts

  • Magd Almuntaser
    Magd Almuntaser

    What will be available in version 11.0.0: - A chat system will be added. - A customer service system will be added (integrated with chat). - Some Indian payment gateways will be added. - Order design

  • Magd Almuntaser
    Magd Almuntaser

    Yes you can use it as a messaging service/ SaaS without asking my permission, the new version 9.0.0 directly contains people who want to use it as a messaging service/ SaaS.. What's new so far in ver

  • Magd Almuntaser
    Magd Almuntaser

    It has been fixed in 10.1.1 and will be released today: - Fixed Export Contacts (xlsx). - Fixed Edit Autoreply Page. - Fixed Send Message (Message Not Appear).

Posted Images

3 hours ago, Juragan Bis said:

mau tanya ke semua nya , ini kendala nya apa ya ga bisa kirim chat apa pun
di cek error gini ! pas sudah ganti script yang sebelum nya tidak bisa ter connect dari device ke mpwa

Screenshot_24.png

Nodejs sudah jalan?

On 11/9/2025 at 3:46 PM, jjsons said:

I think a lot of people are getting connection error. You can do the below steps and thank me later if it worked for you. I am not a professional developer and it took me almost 2 days to reach this point. This is a very simple 2 step process even a non-tech can do this; So, Let's start.

Step 1
Go to this dir ==> "node_modules/@onexgen/baileys/lib/Utils/validate-connection.d.ts" and replace the whole code of this file with below code

import { proto } from '../../WAProto';

import type { AuthenticationCreds, SignalCreds, SocketConfig } from '../Types';

import { BinaryNode } from '../WABinary';

export declare const generateLoginNode: (userJid: string, config: SocketConfig) => proto.ClientPayload;

export declare const generateRegistrationNode: (

creds: SignalCreds,

config: SocketConfig

) => proto.ClientPayload;

export declare const configureSuccessfulPairing: (

stanza: BinaryNode,

opts: Pick<AuthenticationCreds, 'advSecretKey' | 'signedIdentityKey' | 'signalIdentities'>

) => {

creds: Partial<AuthenticationCreds>;

reply: BinaryNode;

};

export declare const encodeSignedDeviceIdentity: (

account: proto.IADVSignedDeviceIdentity,

includeSignatureKey: boolean

) => Uint8Array;




Step 2:

Go to this dir ==> "node_modules/@onexgen/baileys/lib/Utils/validate-connection.js" and replace the whole code of this file with below code
"use strict";

Object.defineProperty(exports, "__esModule", { value: true });

exports.encodeSignedDeviceIdentity = exports.configureSuccessfulPairing = exports.generateRegistrationNode = exports.generateLoginNode = void 0;

const boom_1 = require("@hapi/boom");

const crypto_1 = require("crypto");

const WAProto_1 = require("../../WAProto");

const Defaults_1 = require("../Defaults");

const WABinary_1 = require("../WABinary");

const crypto_2 = require("./crypto");

const generics_1 = require("./generics");

const signal_1 = require("./signal");

const getUserAgent = (config) => ({

appVersion: {

primary: config.version[0],

secondary: config.version[1],

tertiary: config.version[2],

},

platform: WAProto_1.proto.ClientPayload.UserAgent.Platform.WEB,

releaseChannel: WAProto_1.proto.ClientPayload.UserAgent.ReleaseChannel.RELEASE,

osVersion: '0.1',

device: 'Desktop',

osBuildNumber: '0.1',

localeLanguageIso6391: 'en',

mnc: '000',

mcc: '000',

localeCountryIso31661Alpha2: config.countryCode,

});

const PLATFORM_MAP = {

'Mac OS': WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.DARWIN,

Windows: WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.WIN32,

};

const getWebInfo = (config) => {

let webSubPlatform = WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.WEB_BROWSER;

if (config.syncFullHistory && PLATFORM_MAP[config.browser[0]]) {

webSubPlatform = PLATFORM_MAP[config.browser[0]];

}

return { webSubPlatform };

};

const getClientPayload = (config) => {

const payload = {

connectType: WAProto_1.proto.ClientPayload.ConnectType.WIFI_UNKNOWN,

connectReason: WAProto_1.proto.ClientPayload.ConnectReason.USER_ACTIVATED,

userAgent: getUserAgent(config),

};

payload.webInfo = getWebInfo(config);

return payload;

};

const generateLoginNode = (userJid, config) => {

const { user, device } = (0, WABinary_1.jidDecode)(userJid);

const payload = {

...getClientPayload(config),

passive: false,

pull: true,

username: +user,

device: device,

};

return WAProto_1.proto.ClientPayload.fromObject(payload);

};

exports.generateLoginNode = generateLoginNode;

const getPlatformType = (platform) => {

const platformType = platform.toUpperCase();

return WAProto_1.proto.DeviceProps.PlatformType[platformType] || WAProto_1.proto.DeviceProps.PlatformType.DESKTOP;

};

const generateRegistrationNode = ({ registrationId, signedPreKey, signedIdentityKey }, config) => {

const appVersionBuf = (0, crypto_1.createHash)('md5').update(config.version.join('.')).digest();

const companion = {

os: config.browser[0],

platformType: getPlatformType(config.browser[1]),

requireFullSync: config.syncFullHistory,

historySyncConfig: {

storageQuotaMb: 10240,

inlineInitialPayloadInE2EeMsg: true,

recentSyncDaysLimit: undefined,

supportCallLogHistory: false,

supportBotUserAgentChatHistory: true,

supportCagReactionsAndPolls: true,

supportBizHostedMsg: true,

supportRecentSyncChunkMessageCountTuning: true,

supportHostedGroupMsg: true,

supportFbidBotChatHistory: true,

supportAddOnHistorySyncMigration: undefined,

supportMessageAssociation: true,

},

};

const companionProto = WAProto_1.proto.DeviceProps.encode(companion).finish();

const registerPayload = {

...getClientPayload(config),

passive: false,

pull: false,

devicePairingData: {

buildHash: appVersionBuf,

deviceProps: companionProto,

eRegid: (0, generics_1.encodeBigEndian)(registrationId),

eKeytype: Defaults_1.KEY_BUNDLE_TYPE,

eIdent: signedIdentityKey.public,

eSkeyId: (0, generics_1.encodeBigEndian)(signedPreKey.keyId, 3),

eSkeyVal: signedPreKey.keyPair.public,

eSkeySig: signedPreKey.signature,

},

};

return WAProto_1.proto.ClientPayload.fromObject(registerPayload);

};

exports.generateRegistrationNode = generateRegistrationNode;

const configureSuccessfulPairing = (stanza, { advSecretKey, signedIdentityKey, signalIdentities }) => {

const msgId = stanza.attrs.id;

const pairSuccessNode = (0, WABinary_1.getBinaryNodeChild)(stanza, 'pair-success');

const deviceIdentityNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'device-identity');

const platformNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'platform');

const deviceNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'device');

const businessNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'biz');

if (!deviceIdentityNode || !deviceNode) {

throw new boom_1.Boom('Missing device-identity or device in pair success node', { data: stanza });

}

const bizName = businessNode?.attrs.name;

const jid = deviceNode.attrs.jid;

const { details, hmac, accountType } = WAProto_1.proto.ADVSignedDeviceIdentityHMAC.decode(deviceIdentityNode.content);

const isHostedAccount = accountType === WAProto_1.proto.ADVEncryptionType.HOSTED;

const hmacPrefix = isHostedAccount ? Buffer.from([6, 5]) : Buffer.alloc(0);

const advSign = (0, crypto_2.hmacSign)(Buffer.concat([hmacPrefix, details]), Buffer.from(advSecretKey, 'base64'));

if (Buffer.compare(hmac, advSign) !== 0) {

throw new boom_1.Boom('Invalid account signature');

}

const account = WAProto_1.proto.ADVSignedDeviceIdentity.decode(details);

const { accountSignatureKey, accountSignature, details: deviceDetails } = account;

const accountMsg = Buffer.concat([Buffer.from([6, 0]), deviceDetails, signedIdentityKey.public]);

if (!crypto_2.Curve.verify(accountSignatureKey, accountMsg, accountSignature)) {

throw new boom_1.Boom('Failed to verify account signature');

}

const devicePrefix = isHostedAccount ? Buffer.from([6, 6]) : Buffer.from([6, 1]);

const deviceMsg = Buffer.concat([devicePrefix, deviceDetails, signedIdentityKey.public, accountSignatureKey]);

account.deviceSignature = crypto_2.Curve.sign(signedIdentityKey.private, deviceMsg);

const identity = (0, signal_1.createSignalIdentity)(jid, accountSignatureKey);

const accountEnc = exports.encodeSignedDeviceIdentity(account, false);

const deviceIdentity = WAProto_1.proto.ADVDeviceIdentity.decode(account.details);

const reply = {

tag: 'iq',

attrs: { to: WABinary_1.S_WHATSAPP_NET, type: 'result', id: msgId },

content: [{ tag: 'pair-device-sign', attrs: {}, content: [{ tag: 'device-identity', attrs: { 'key-index': deviceIdentity.keyIndex.toString() }, content: accountEnc }] }],

};

const authUpdate = {

account,

me: { id: jid, name: bizName },

signalIdentities: [...(signalIdentities || []), identity],

platform: platformNode?.attrs.name,

};

return { creds: authUpdate, reply };

};

exports.configureSuccessfulPairing = configureSuccessfulPairing;

const encodeSignedDeviceIdentity = (account, includeSignatureKey) => {

account = { ...account };

if (!includeSignatureKey || !account.accountSignatureKey?.length) account.accountSignatureKey = null;

return WAProto_1.proto.ADVSignedDeviceIdentity.encode(account).finish();

};

exports.encodeSignedDeviceIdentity = encodeSignedDeviceIdentity;

@Shivendra Kr. Sahu

🧩 Integração com API MPWA – Dúvida Técnica

Olá pessoal!
Criei um CRM que utiliza a API do MPWA e implementei o chat integrado para facilitar o envio de orçamentos, ordens de serviço e cobranças diretamente do sistema (print em anexo).

No entanto, percebi duas limitações que não consegui contornar:

  1. Mensagens de áudio não são capturadas pelo webhook;

  2. Mensagens enviadas de outros dispositivos (WhatsApp Web ou celular) também não são detectadas, ou seja, só aparecem no sistema as mensagens trocadas diretamente pelo CRM.

As mensagens enviadas e recebidas via sistema funcionam perfeitamente — apenas essas duas situações não retornam pelo webhook.

Gostaria de saber se há alguma configuração adicional ou endpoint que permita capturar esses tipos de mensagens.

Obrigado! 👋


image.png

On 11/9/2025 at 2:16 PM, jjsons said:

I think a lot of people are getting connection error. You can do the below steps and thank me later if it worked for you. I am not a professional developer and it took me almost 2 days to reach this point. This is a very simple 2 step process even a non-tech can do this; So, Let's start.

Step 1
Go to this dir ==> "node_modules/@onexgen/baileys/lib/Utils/validate-connection.d.ts" and replace the whole code of this file with below code

import { proto } from '../../WAProto';

import type { AuthenticationCreds, SignalCreds, SocketConfig } from '../Types';

import { BinaryNode } from '../WABinary';

export declare const generateLoginNode: (userJid: string, config: SocketConfig) => proto.ClientPayload;

export declare const generateRegistrationNode: (

creds: SignalCreds,

config: SocketConfig

) => proto.ClientPayload;

export declare const configureSuccessfulPairing: (

stanza: BinaryNode,

opts: Pick<AuthenticationCreds, 'advSecretKey' | 'signedIdentityKey' | 'signalIdentities'>

) => {

creds: Partial<AuthenticationCreds>;

reply: BinaryNode;

};

export declare const encodeSignedDeviceIdentity: (

account: proto.IADVSignedDeviceIdentity,

includeSignatureKey: boolean

) => Uint8Array;




Step 2:

Go to this dir ==> "node_modules/@onexgen/baileys/lib/Utils/validate-connection.js" and replace the whole code of this file with below code
"use strict";

Object.defineProperty(exports, "__esModule", { value: true });

exports.encodeSignedDeviceIdentity = exports.configureSuccessfulPairing = exports.generateRegistrationNode = exports.generateLoginNode = void 0;

const boom_1 = require("@hapi/boom");

const crypto_1 = require("crypto");

const WAProto_1 = require("../../WAProto");

const Defaults_1 = require("../Defaults");

const WABinary_1 = require("../WABinary");

const crypto_2 = require("./crypto");

const generics_1 = require("./generics");

const signal_1 = require("./signal");

const getUserAgent = (config) => ({

appVersion: {

primary: config.version[0],

secondary: config.version[1],

tertiary: config.version[2],

},

platform: WAProto_1.proto.ClientPayload.UserAgent.Platform.WEB,

releaseChannel: WAProto_1.proto.ClientPayload.UserAgent.ReleaseChannel.RELEASE,

osVersion: '0.1',

device: 'Desktop',

osBuildNumber: '0.1',

localeLanguageIso6391: 'en',

mnc: '000',

mcc: '000',

localeCountryIso31661Alpha2: config.countryCode,

});

const PLATFORM_MAP = {

'Mac OS': WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.DARWIN,

Windows: WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.WIN32,

};

const getWebInfo = (config) => {

let webSubPlatform = WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.WEB_BROWSER;

if (config.syncFullHistory && PLATFORM_MAP[config.browser[0]]) {

webSubPlatform = PLATFORM_MAP[config.browser[0]];

}

return { webSubPlatform };

};

const getClientPayload = (config) => {

const payload = {

connectType: WAProto_1.proto.ClientPayload.ConnectType.WIFI_UNKNOWN,

connectReason: WAProto_1.proto.ClientPayload.ConnectReason.USER_ACTIVATED,

userAgent: getUserAgent(config),

};

payload.webInfo = getWebInfo(config);

return payload;

};

const generateLoginNode = (userJid, config) => {

const { user, device } = (0, WABinary_1.jidDecode)(userJid);

const payload = {

...getClientPayload(config),

passive: false,

pull: true,

username: +user,

device: device,

};

return WAProto_1.proto.ClientPayload.fromObject(payload);

};

exports.generateLoginNode = generateLoginNode;

const getPlatformType = (platform) => {

const platformType = platform.toUpperCase();

return WAProto_1.proto.DeviceProps.PlatformType[platformType] || WAProto_1.proto.DeviceProps.PlatformType.DESKTOP;

};

const generateRegistrationNode = ({ registrationId, signedPreKey, signedIdentityKey }, config) => {

const appVersionBuf = (0, crypto_1.createHash)('md5').update(config.version.join('.')).digest();

const companion = {

os: config.browser[0],

platformType: getPlatformType(config.browser[1]),

requireFullSync: config.syncFullHistory,

historySyncConfig: {

storageQuotaMb: 10240,

inlineInitialPayloadInE2EeMsg: true,

recentSyncDaysLimit: undefined,

supportCallLogHistory: false,

supportBotUserAgentChatHistory: true,

supportCagReactionsAndPolls: true,

supportBizHostedMsg: true,

supportRecentSyncChunkMessageCountTuning: true,

supportHostedGroupMsg: true,

supportFbidBotChatHistory: true,

supportAddOnHistorySyncMigration: undefined,

supportMessageAssociation: true,

},

};

const companionProto = WAProto_1.proto.DeviceProps.encode(companion).finish();

const registerPayload = {

...getClientPayload(config),

passive: false,

pull: false,

devicePairingData: {

buildHash: appVersionBuf,

deviceProps: companionProto,

eRegid: (0, generics_1.encodeBigEndian)(registrationId),

eKeytype: Defaults_1.KEY_BUNDLE_TYPE,

eIdent: signedIdentityKey.public,

eSkeyId: (0, generics_1.encodeBigEndian)(signedPreKey.keyId, 3),

eSkeyVal: signedPreKey.keyPair.public,

eSkeySig: signedPreKey.signature,

},

};

return WAProto_1.proto.ClientPayload.fromObject(registerPayload);

};

exports.generateRegistrationNode = generateRegistrationNode;

const configureSuccessfulPairing = (stanza, { advSecretKey, signedIdentityKey, signalIdentities }) => {

const msgId = stanza.attrs.id;

const pairSuccessNode = (0, WABinary_1.getBinaryNodeChild)(stanza, 'pair-success');

const deviceIdentityNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'device-identity');

const platformNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'platform');

const deviceNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'device');

const businessNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'biz');

if (!deviceIdentityNode || !deviceNode) {

throw new boom_1.Boom('Missing device-identity or device in pair success node', { data: stanza });

}

const bizName = businessNode?.attrs.name;

const jid = deviceNode.attrs.jid;

const { details, hmac, accountType } = WAProto_1.proto.ADVSignedDeviceIdentityHMAC.decode(deviceIdentityNode.content);

const isHostedAccount = accountType === WAProto_1.proto.ADVEncryptionType.HOSTED;

const hmacPrefix = isHostedAccount ? Buffer.from([6, 5]) : Buffer.alloc(0);

const advSign = (0, crypto_2.hmacSign)(Buffer.concat([hmacPrefix, details]), Buffer.from(advSecretKey, 'base64'));

if (Buffer.compare(hmac, advSign) !== 0) {

throw new boom_1.Boom('Invalid account signature');

}

const account = WAProto_1.proto.ADVSignedDeviceIdentity.decode(details);

const { accountSignatureKey, accountSignature, details: deviceDetails } = account;

const accountMsg = Buffer.concat([Buffer.from([6, 0]), deviceDetails, signedIdentityKey.public]);

if (!crypto_2.Curve.verify(accountSignatureKey, accountMsg, accountSignature)) {

throw new boom_1.Boom('Failed to verify account signature');

}

const devicePrefix = isHostedAccount ? Buffer.from([6, 6]) : Buffer.from([6, 1]);

const deviceMsg = Buffer.concat([devicePrefix, deviceDetails, signedIdentityKey.public, accountSignatureKey]);

account.deviceSignature = crypto_2.Curve.sign(signedIdentityKey.private, deviceMsg);

const identity = (0, signal_1.createSignalIdentity)(jid, accountSignatureKey);

const accountEnc = exports.encodeSignedDeviceIdentity(account, false);

const deviceIdentity = WAProto_1.proto.ADVDeviceIdentity.decode(account.details);

const reply = {

tag: 'iq',

attrs: { to: WABinary_1.S_WHATSAPP_NET, type: 'result', id: msgId },

content: [{ tag: 'pair-device-sign', attrs: {}, content: [{ tag: 'device-identity', attrs: { 'key-index': deviceIdentity.keyIndex.toString() }, content: accountEnc }] }],

};

const authUpdate = {

account,

me: { id: jid, name: bizName },

signalIdentities: [...(signalIdentities || []), identity],

platform: platformNode?.attrs.name,

};

return { creds: authUpdate, reply };

};

exports.configureSuccessfulPairing = configureSuccessfulPairing;

const encodeSignedDeviceIdentity = (account, includeSignatureKey) => {

account = { ...account };

if (!includeSignatureKey || !account.accountSignatureKey?.length) account.accountSignatureKey = null;

return WAProto_1.proto.ADVSignedDeviceIdentity.encode(account).finish();

};

exports.encodeSignedDeviceIdentity = encodeSignedDeviceIdentity;

Thank You So Much ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

Min, saya install versi terbaru di cloudpanel vps cloudflare, semua di troubleshot sudah hijau tapi QR tidak muncul apa masalahnya ya? Thanks

10 hours ago, adit_a said:

Min, saya install versi terbaru di cloudpanel vps cloudflare, semua di troubleshot sudah hijau tapi QR tidak muncul apa masalahnya ya? Thanks

sudah dibuka outbound firewall untuk port 3100 nya? pengalaman saya saat firewall belum dibuka belum bisa memunculkan QR code

I am having trouble connecting my WhatsApp account. When scanning the barcode, the process does not complete and fails. Is there a solution to this problem?

On 11/9/2025 at 11:59 PM, wong said:

Lelucon apa ini 😂, jualan layanan di forum para pengembang wkwkwkkk

oh ini forum pengembang yaa? Kukira forum tempat nyari resources gratisan🫣

3 hours ago, Wapbot said:

oh ini forum pengembang yaa? Kukira forum tempat nyari resources gratisan🫣

iyessss...pengembang usaha..😑

3 hours ago, Wapbot said:

oh ini forum pengembang yaa? Kukira forum tempat nyari resources gratisan🫣

Tepatnya tempat berbagi & pencari resource bukan tempat cari cuan 🫣

38 minutes ago, wong said:

Tepatnya tempat berbagi & pencari resource bukan tempat cari cuan 🫣

oh nyari resources gratisan ujungnya nyari cuan dr resources yg gratisan, gitu maksudnya?🫢

22 minutes ago, Wapbot said:

oh nyari resources gratisan ujungnya nyari cuan dr resources yg gratisan, gitu maksudnya?🫢

Iyesss seperti ini 😂

Screenshot 2025-11-13 153339.png

6 hours ago, ensmedan said:

I am having trouble connecting my WhatsApp account. When scanning the barcode, the process does not complete and fails. Is there a solution to this problem?

i am also facing same kind of issue, so i manage to resolve it by running node server using Ver. 10, that works fine for me. @Magd Almuntaser need your thoughts.

6 hours ago, Wapbot said:

oh ini forum pengembang yaa? Kukira forum tempat nyari resources gratisan🫣

keduanya benar, resource gratisan dan pengembang 😂

3 hours ago, wong said:

iyessss...pengembang usaha..😑

wkwk

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Recently Browsing 1

Latest Updated Files


DoniaWeB © 2018-2025 | Made with

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.