wbm icon indicating copy to clipboard operation
wbm copied to clipboard

now i cant message again

Open Nux-xader opened this issue 3 years ago • 5 comments

const wbm = require('wbm');

wbm.start().then(async () => { const phones = ['target number']; const message = 'test'; await wbm.send(phones, message); await wbm.end(); }).catch(err => console.log(err));

first time use this module i can send message, but now i cant send message again

Nux-xader avatar Sep 03 '21 23:09 Nux-xader

Hello, I just tested and it seems to work. I am using wbm version 1.1.16. Could you provide more details about why it doesn't work for the second time?

Such as:

  • Node version
  • Wbm package version
  • Terminal output logs
  • Steps to reproduce

Also try to pass this option showBrowser: true, this way you can see the bot opening the browser and performing the task. To do this just pass an object as an argument to the wbm.start() function:

wbm.start({ showBrowser: true }).then(async () => {
    [...]
}).catch(err => console.log(err));
  • If you can also upload some screenshots of the browser reproducing the problem would be awesome.
  • Another thing is to check for console errors in the browser

balataca avatar Sep 09 '21 19:09 balataca

Hi,

I have the same issue. Sometimes the message is not sent. The console output confirms that the message has been sent yet the is no message on WhatsApp. When I use showBrowser - It opens the browser and shows the message but then closed the browser so I can't check the logs.

Is there a way I can keep the browser open after it has sent the message?

I have found that if the mobile number is invalid then it stops the process and I have to "logout" from the linked device and then link the device again. This could take 2 or more attempts before a message is sent again.

Even though the message is reported as sent there is nothing in the chat history about the message.

antonyferguson avatar Sep 26 '21 10:09 antonyferguson

Do you guys know how to start the program? it doesn't let me

lielarie avatar Oct 18 '21 14:10 lielarie

Do you guys know how to start the program? it doesn't let me

I mean, do i need to add anything to the code that they uploaded to the reporisoty?

lielarie avatar Oct 18 '21 14:10 lielarie

I just put in a mobile number and the code worked. but then it just stopped working and now it will not send messages

Tony Ferguson RITO Technologies mobile (082) 464 6018 office (010) 213-7016/7

On Mon, Oct 18, 2021 at 4:30 PM lielarie @.***> wrote:

Do you guys know how to start the program? it doesn't let me

I mean, do i need to add anything to the code that they uploaded to the reporisoty?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Briuor/wbm/issues/28#issuecomment-945836920, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWMAIF2O2R66CAE76IZBBLUHQVPTANCNFSM5DMTMTIA . 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.

antonyferguson avatar Oct 18 '21 14:10 antonyferguson