How can we send message multiple time to a specific person or group in whatsapp using loop?

+1 vote
I want to send "Hello"  message to my friend 100 times. How can i do that?
Feb 28 in Java-Script by kartik
• 16,870 points
399 views

1 answer to this question.

0 votes

Hii @kartik,

 This is simple task to send single message multiple time to your friend you need to follow the steps bellow:

1.Open your whatsapp web and log in.

2. Select the contact you want to send.

3.Open console:
                      For chrome:Ctrl+Shift+J (on Windows)  or Cmd+Option+J (on Mac).

                      For Firefox: Ctrl+Shift+J (on Windows) or Cmd+Shift+J (on Mac).

4.Copy paste the below script in console and press Enter.

var randomTexts=["Hi","Hello","Please reply me"];
window.InputEvent = window.Event || window.InputEvent;
var event = new InputEvent('input', {bubbles: true});
var textbox = document.getElementsByClassName("_3u328")[0];
setInterval(function(){ textbox.innerHTML = randomTexts[Math.floor((Math.random() * randomTexts.length) + 0)];
textbox.dispatchEvent(event);
document.getElementsByClassName("_3M-N-")[0].click() ; }, 1000);

Tips

  1.  To Change message :Using this code will sent messages from randomText string array. Each message will be selected randomly from the array and sent to the contact. You can use your own strings or single string inside this.
  2. Change time between each message:Using this code, messages will be sent at 1 message per second (1000 milliseconds). To change this you can change the 1000 milliseconds given for setInterval function at line 7 to any milliseconds rate you want.

For your Reference find the image attached below:

answered Feb 28 by Niroj
• 35,060 points

Related Questions In Java-Script

0 votes
1 answer

How can we access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?>

Hello @kartik, You can also use json_encode for ...READ MORE

answered Apr 29 in Java-Script by Niroj
• 35,060 points
367 views
0 votes
1 answer

How to Get values from a specific user - queryset in Django?

Hello @kartik, You can get the list of Users ...READ MORE

answered May 28 in Java-Script by Niroj
• 35,060 points
82 views
0 votes
1 answer

How can we parse JSON using Node.js?

Hello @kartik, You can simply use JSON.parse. The definition of ...READ MORE

answered Apr 24 in Java-Script by Niroj
• 35,060 points
57 views
0 votes
1 answer

How to print a circular structure in a JSON-like format?

Hello, You can use util.inspect(object) in node.js. It automatically ...READ MORE

answered Apr 24 in Java-Script by Niroj
• 35,060 points
56 views
0 votes
1 answer

What are the vulnerability related to PHP Form?

Hii, The $_SERVER["PHP_SELF"] variable can be used by ...READ MORE

answered Feb 13 in PHP by Niroj
• 35,060 points
94 views
0 votes
0 answers

Anyone can help me out to understand the semantic of (document.getElementBYId("demo").innerHTML="Hello") ?

Hello guys, Can Someone helps me to find ...READ MORE

Jan 17 in Web Development by anonymous
• 16,870 points
58 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20 in Web Development by Niroj
• 35,060 points

edited Jan 21 by Niroj 85 views
0 votes
1 answer

How can I send a message to a particular client with socket.io?

Hii, You can try the code below: io.to(socket.id).emit("event", data); whenever ...READ MORE

answered Apr 27 in Java-Script by Niroj
• 35,060 points
541 views
0 votes
1 answer

How to send data in request body with a GET when using jQuery $.ajax()?

Hello @kartik, Sending the data in your scenario,I ...READ MORE

answered Jun 18 in Java-Script by Niroj
• 35,060 points
122 views