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
• 4,560 points
111 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
• 8,620 points

Related Questions In Java-Script

0 votes
1 answer

What is callback function in JavaScript?

callback is not a keyword, its just ...READ MORE

answered Jan 30 in Java-Script by Niroj
• 8,620 points
63 views
0 votes
1 answer

What are XMLHttpRequest Object in Ajax?

 As, you are up to ajax so ...READ MORE

answered Jan 31 in Java-Script by Niroj
• 8,620 points
35 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
• 8,620 points
41 views
0 votes
0 answers
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
• 4,560 points
38 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
• 8,620 points

edited Jan 21 by Niroj 50 views
0 votes
1 answer

How to clone a JavaScript object?

Hello, You can clone an object and remove ...READ MORE

answered 2 days ago in Java-Script by Niroj
• 8,620 points
5 views
0 votes
1 answer

How to Scroll to the top of the page using JavaScript?

Hii @kartik, Using javascript <script> $("a[href='#top']").click(function() { ...READ MORE

answered 2 days ago in Java-Script by Niroj
• 8,620 points
5 views
0 votes
1 answer

How to get all address and send ethers in solidity using a loop?

I found a similar code somewhere: contract  Holders{ uint ...READ MORE

answered Jul 31, 2018 in Blockchain by digger
• 26,660 points
364 views
+1 vote
4 answers