-
-
Save scriptnull/7877b404f33de2b7445a to your computer and use it in GitHub Desktop.
//spam message the chats with thirugram.js | |
//open up telegram web and go to the chat you want to spam | |
//open console ( Ctrl + Shift + J ) | |
//execute the code | |
var message = ""; //spam message | |
var interval = 1 ; // in seconds | |
var count = 10 ; //number of times to send | |
var notifyInterval = 5 ; //notify | |
var i = 0 ; | |
var timer = setInterval(function(){ | |
document.getElementsByClassName('composer_rich_textarea')[0].innerHTML = message; | |
$('.im_submit').trigger('mousedown'); | |
i++; | |
if( i == count ) | |
clearInterval(timer); | |
if( i % notifyInterval == 0) | |
console.log(i + ' MESSAGES SENT'); | |
} , interval * 1000 ) ; | |
//BTW , this is how I sent 10,000 Happy birthday wishes to my friend. |
Line 12 Not work :
$('.im_submit').trigger('mousedown');
- Dont click on SEND !!
Why ??
I made 'mousedown' event to be triggered on send button , so that the send button starts making the appropriate server requests .
hi
how it work ?
same question how it works?
Please what section of the coding contains the contents of the birthday message?
Good Lord!!! It worked!!! Thanks admin!!!
How to send messages to multiple users simultaneously?
it works!
what is the difference between interval and notifyInterval ?
Scrivetemi su telegram vorrei informazioni @monesetelegram €
The idea is to destroy accounts linked to pedophilia. I target the account or the members of the account. Is there an idea ?
You are genius. Great work. thanks
How to add media in message?
k
Nice Sir
Iam actually new to programming specially in Javascript and HTML
If you could describe this code to me a little bit i would be very appreciated .
God bless you .
Use this. Sur
const fetchData = async () => {
const response = await fetch('https://official-joke-api.appspot.com/random_joke');
const myJson = await response.json();
const setup = myJson.setup;
const punchline = myJson.punchline;
return { setup, punchline }
}
const sendData = (data) => {
document.getElementsByClassName('input-message-input')[0].innerHTML = data
document.querySelector('.btn-send').click();
}
let timer = setInterval(async function() {
let data = await fetchData()
sendData(data.setup)
sendData(data.punchline)
}, 10000);
at first i can use this method . Later , the error say null and they're not spamming . Can someone help me?
at first i can use this method . Later , the error say null and they're not spamming . Can someone help me?
the api call reached the max call load. You might need to wait abit and try again set the setInterval
time to more than 10sec
hi any one knows auto spamming if yes plzz tell me
Hii i want masss report script kisi k paas he??
@scriptnull Bhai help
new?
Hi, Why this error showed to me?
Uncaught TypeError: Cannot set properties of undefined (setting 'innerHTML')
@eonesun switch to K version of telegram web
My constraint was to send 1000 messages as soon as possible , so I managed to get the least interval of time between requests. 1 second is the healthy interval between requests and it well suits the scenario of slow connections. That's why I have kept it as a fixed interval.