Skip to content
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

now i cant message again #28

Open
Nux-xader opened this issue Sep 3, 2021 · 5 comments
Open

now i cant message again #28

Nux-xader opened this issue Sep 3, 2021 · 5 comments

Comments

@Nux-xader
Copy link

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

@balataca
Copy link
Collaborator

balataca commented Sep 9, 2021

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

@antonyferguson
Copy link

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.

@lielarie
Copy link

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

@lielarie
Copy link

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?

@antonyferguson
Copy link

antonyferguson commented Oct 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants