-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding the Multi-device BETA. (CLICK HERE) #758
Comments
localStorage {
"history-sync-earliest-date": "1618517463",
"md-opted-in": "true",
"WARoutingInfo": "{\"domain\":\"fb\",\"edgeRouting\":\"CA0IBQ==\"}",
"f86SIKHSKlIRpTDW+hsAiQ==": "{\"id\":\"global_mute\",\"expiration\":0}",
"4P/5geRSELQs6BOP78jHJA==": "{\"DELETE_MSG_CLEAR_MEDIA\":true,\"MD_PAYMENT\":true,\"ARCHIVE_BROADCAST\":true,\"RECENT_EMOJI_SYNC\":true,\"VOIP_VOICE_CALL\":true,\"DESKTOP_VOIP_VOICE_CALL\":true,\"DESKTOP_VOIP_VIDEO_CALL\":true,\"MD_BACKEND\":true,\"MD_ADV\":true,\"MD_VOIP_GROUP\":false,\"VOIP_INDIVIDUAL_OUTGOING\":true,\"GROUPS_V_3\":true,\"GROUPS_V_3_CREATE\":false,\"CHANGE_NUMBER_V_2\":true,\"QUERY_STATUS_V_3_THUMBNAIL\":false,\"LIVE_LOCATIONS\":true,\"QUERY_VNAME\":true,\"VOIP_INDIVIDUAL_INCOMING\":true,\"PAYMENTS\":true,\"STICKER_PACK_QUERY\":true,\"LIVE_LOCATIONS_FINAL\":true,\"MEDIA_UPLOAD\":true,\"VNAME_V_2\":true,\"VIDEO_PLAYBACK_URL\":true,\"STATUS_RANKING\":true,\"VOIP_INDIVIDUAL_VIDEO\":false,\"THIRD_PARTY_STICKERS\":true,\"FREQUENTLY_FORWARDED_SETTING\":true,\"GROUPS_V_4_JOIN_PERMISSION\":true,\"RECENT_STICKERS\":false,\"CATALOG\":true,\"STARRED_STICKERS\":false,\"TEMPLATE_MESSAGE\":true,\"TEMPLATE_MESSAGE_INTERACTIVITY\":false,\"EPHEMERAL_MESSAGES\":true,\"RECENT_STICKERS_V_2\":true,\"USER_NOTICE\":true,\"SUPPORT\":true,\"GROUP_UII_CLEANUP\":true}",
"DmSuwvU7JZflIEQn2wbPRg==": "\"{\\\"9618xxxx95-1624479435@g.us\\\":\\\"1:QENIbvzu\\\",\\\"x96xxxxxxx8-162xxxxxx6@g.us\\\":\\\"1:yeFyj1P5\\\"}\"",
"Ha6V0naB+Asaj7QK9E9Yhw==": "false",
"jytAU/x5IFaodumGFgGCqQ==": "false",
"remember-me": "true",
"WaInitialHistorySynced": "\"true\"",
"Q9l1pa9U6RusJLJ/OGoVmw==": "{\"readReceipts\":\"all\",\"groupAdd\":\"all\",\"profilePicture\":\"all\",\"about\":\"all\",\"lastSeen\":\"all\"}",
"dX8DofUHWjwPKlwiKhrvbg==": "false",
"MdUpgradeWamFlag": "false",
"WebEncKeySalt": "\"akzrRxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxUkv9Q=\"",
"last-wid-md": "\"xxxxxxxx2x8:2@c.us\"",
"WALogPreemptiveCleanUp": "false",
"DcsZisUDFOGXo22KiEczVw==": "true",
"WAHistorySyncStatus": "{\"initialCompleted\":true,\"recentCompleted\":true}",
"MdHistoryLastChunkProcessed": "\"3_1\"",
"syncd_disabled_due_to_fatal": "false",
"WANoiseInfoIv": "[\"exxfxxxxxxxYDxxxxQ==\",\"mxxTx7Kxxxxxx3x5xxxA==\",\"exxxxxx/+36Fxxxxxg==\"]",
"critical_data_synced": "true",
"nSsarI/MAjXIC+UZpEdYEQ==": "[0,17]",
"7qZ3zUZ0x8WTp6gYa0npDg==": "\"{}\"",
"WANoiseInfo": "{\"recoveryToken\":\"B82GoA6DzVxxxxxxRJtzYk5gM=\",\"pubKey\":\"6umXxxxxxxxxxxxxxxINxDxxRkxxxxxxxxTvsxb\",\"privKey\":\"ZLxxxxxxLxxFZynAxxxxxxxxxxPvEpqExxxxxmK\"}",
"pBzk5ZV/gj4KEC8gIJo2WA==": "\"SJKJLDKSJLD\"",
"lFi24bP/zxekbO3AVtNXXA==": "[]",
"abprops": "{\"hash\":\"1Xv5L1\",\"lastSyncTime\":1626293473539}",
"debugCursor": "1196",
"WALangPref": "\"en\"",
"dpKjR53BUeu6nmFjKBsnaQ==": "{\"FavC7xOxxxxxxQ==\":1}",
"contact-sync-refresh-seconds": "527917",
"WAShouldCheckContactSyncStatus": "true",
"mobile-platform": "\"android\"",
"whatsapp-mutex": "\"x813505889:init_1626295122038\"",
"WABrowserId": "\"RYc8V8xxxxxxxxx7WwuEg==\""
} |
This comment has been minimized.
This comment has been minimized.
SUCCESS! |
hmm, this was about Store and mR the only hurdle i can see is the session |
Hey! I would like to know how you guys would like me to handle this. I am going to open a Pull request to just get the bare minimum out there, regarding sessions, i have a few puzzling questions to ask, hopefully you guys can answer!
|
#761 has been opened. I'll add my experimental systems there. |
Have a default path, controlled by lib, but we can change the path I close with CTRL + C, or pm2 delete process_pid |
the path is based on operating system? I think that path should be placed by the user |
@pedroslopez I would like your thoughts! |
I know for a fact some people store data in databases, so I don't know how i'll support it for them.. Maybe a "exportAll.json" where the structure would be like this: {
localStorage: {},
indexedDB: {}
} |
Super interesting! Thanks for looking into this. From what I'm understanding, WhatsApp Web when in multi-device mode no longer stores any information in localStorage and instead stores everything (including session information) in IndexedDB, so our current solution of injecting the session into localStorage before loading WhatsApp Web no longer works, is that correct? Puppeteer has a built-in way of persisting these things by specifying a I think a potential path forward is to see what are the minimal values we need to persist to be able to start up a whatsapp session. This probably contains no past message data, but only things required for authentication. Then, we could do something similar to what we do for localStorage and have a pre-step that writes these things to IndexedDB instead as needed. |
|
any update? :/ |
I'm implementing a file management system, debating on userDataDir since it also saves data of other open tabs in the browser aswell. I am going for an Observer with a custom system to save the indexedDB now. I'm also going to push that to #761, so stay tuned for later today as i'll talk about it on the WWebJS discord. |
@PurpShell |
Hey! I've already documented what you said above. I am working on & testing a file management system solution. I have worked out some stuff that can potentially trigger a re-sync, looks promising. |
After a bunch of days of inactivity, whatsapp re-syncs with the phone. This is shown in a "Downloading Messages X%" message on the splash screen. So far, I've found webpack methods that can re-trigger synchronization. |
It didn't work for me. The script creates the session but does not remain after restart `const fs = require('fs'); if (fs.existsSync(SESSION_FILE_PATH)) { const client = new Client({ client.on('authenticated', (session) => { |
It used to work in Oct-Nov, but now when I tried again it doesn't seem to work. |
Actually it works with me in a different approach now... I read the directories inside WWebJS folder and loop through each subfolder (each subfolder is a session folder) and then create a new client with clientId same as the folder name without the word "session-", and it restores the session automatically
|
Hi, I got this error after i rescanning qr and try to send a reply message. Any idea how to solve it? Thanks a lot |
UPDATE: fixed by reinstalling using npm i github:pedroslopez/whatsapp-web.js#multidevice |
Is there any way to track the initialization process like after scanning the QR code it takes some time to download the data right can we track that timing (eg: loading) |
`D:\wabot3\node_modules\whatsapp-web.js\src\Client.js:452 SyntaxError: Unexpected identifier Hi, I got this error after update |
I am getting this same error, other files are also giving syntax errors |
This happens with the latest version, I have had another bot running in an older version and this morning it errors with this message: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'Sticker') |
I have switched to node version 17.2.0 and now it works. |
hello sistemas-y-redes you still using the same packages whatsapp-web.js or the new one : npm i github:pedroslopez/whatsapp-web.js#multidevice please answer i have the same probleme |
I am using the multidevice branch |
Hi everyone! I'm trying to reply with buttons in multidevice, but the message is never delivered, it's working but only with string messages. My code is something like this:
And my client is this one:
Any thoughts? |
In WhatsApp FAQ clearly says in multidevice some functions like button no
works.
El jue., 27 de enero de 2022 7:12 p. m., Jeremy Andes <
***@***.***> escribió:
… Hi everyone!
I'm trying to reply with buttons in multidevice, but the message is never
delivered, it's working but only with string messages.
My code is something like this:
let button = new Buttons(
`Hi! Welcome to initial config of ${NameApp}`,
[
{ body: '• Button example 1' },
{ body: '• Button example 2' },
{ body: '• Button example 3' },
],
`Hi ${name}!`,
footer,
);
client.sendMessage(msg.from, button);
And my client is this one:
const client = new Client({
puppeteer: {
headless: false,
args: [
'--no-sandbox',
],
clientId: 'example',
disableMessageHistory: true
}
});
Any thoughts?
—
Reply to this email directly, view it on GitHub
<#758 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADT6M7DLPMCLJSCNHVOVCFDUYHNNXANCNFSM5AMGHTCA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thank you @voxsoftware for your quick answer! |
hello all, Install via npm i github:pedroslopez/whatsapp-web.js#multidevice this is part of this update: Multi-device branch #889 error message that appears after executing the above command: code: 'MODULE_NOT_FOUND', |
I've noticed that multidevice isn't a beta feature anymore and i don't even have the option to disable it. |
Error after scan QR.
|
|
Me too... What I have to Do now? |
@NowDev @LittleKing205 and everyone else that's now stuck not being able to use main: If you really really can't wait, you can use the multidevice branch directly by following the instructions on #889 |
I can wait for it. You make a realy great job with this package. I was a little bit irritated today, that my bot gas stopped ther work. |
Multi-device support is now released as part of v1.16.0. Thanks everyone for testing! Check out the release notes at https://github.com/pedroslopez/whatsapp-web.js/releases/tag/v1.16.0 |
Dear Pedroslopez, first of all I really really appreciate your effort and hard work. I want to all you about my scenario, I use a Dual App when I trying to connect (QR SCAN) it shows error on terminal 'Multi device can not connected' something like that kindly fix this issue. once again respect for your effort.👏👏👏 |
@PortalAt12345 this issue is closed due to multidevice support in main branch. Btw you can take a look to what auth-strategy is the best for you: https://wwebjs.dev/guide/authentication.html |
No, it is for multi-device this solution not meet my scenario. my scenario is different, I used multi accounts (clone apps) with the help of this app I can use more than one WhatsApp account in same phone in simple words, I have 3 different WhatsApp in same phone with different number. It shows an error
|
I opened this issue to discuss the multi-device beta that just got announced and available to everyone at the latest version of the WhatsApp and WhatsApp Business beta.
We are in the final stages of supporting this beta update, and we need your help. Visit #889 to help test.
ps: pinned because of so many issues
The text was updated successfully, but these errors were encountered: