Skip to content

Instantly share code, notes, and snippets.

@scriptnull
Last active October 8, 2023 20:02
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save scriptnull/7877b404f33de2b7445a to your computer and use it in GitHub Desktop.
Save scriptnull/7877b404f33de2b7445a to your computer and use it in GitHub Desktop.
spam telegram via telegram web
//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.
@jevgen
Copy link

jevgen commented Jun 24, 2015

intervals will be more convincing with random duration

@scriptnull
Copy link
Author

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.

@fazelmojiri
Copy link

Line 12 Not work :
$('.im_submit').trigger('mousedown');

  • Dont click on SEND !!

Why ??

@scriptnull
Copy link
Author

I made 'mousedown' event to be triggered on send button , so that the send button starts making the appropriate server requests .

@arman29
Copy link

arman29 commented Jan 21, 2016

hi

@arman29
Copy link

arman29 commented Jan 21, 2016

how it work ?

@muhamed-kanapiya
Copy link

same question how it works?

@i-Rok
Copy link

i-Rok commented Sep 5, 2018

Please what section of the coding contains the contents of the birthday message?

@i-Rok
Copy link

i-Rok commented Sep 5, 2018

Good Lord!!! It worked!!! Thanks admin!!!

@uviman
Copy link

uviman commented Dec 1, 2019

How to send messages to multiple users simultaneously?

@Allan-Nava
Copy link

it works!

@drezden-cell
Copy link

what is the difference between interval and notifyInterval ?

@Andreatelegram
Copy link

Scrivetemi su telegram vorrei informazioni @monesetelegram €

@poupitoo
Copy link

poupitoo commented Apr 12, 2020

Capture d’écran 2020-04-13 à 02 06 28

En gros un groupe contrôlé par un seul admin, vous avez des idées ? Contacter tous les membres d'un groupe ?

@poupitoo
Copy link

The idea is to destroy accounts linked to pedophilia. I target the account or the members of the account. Is there an idea ?

@shriiyansh210
Copy link

You are genius. Great work. thanks

@rishabhkumar112
Copy link

How to add media in message?

@darasimi2334
Copy link

k

@AmirMJ-Z
Copy link

AmirMJ-Z commented Sep 3, 2020

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 .

@laiandrew2002
Copy link

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);

@thestnest
Copy link

at first i can use this method . Later , the error say null and they're not spamming . Can someone help me?

@laiandrew2002
Copy link

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

@chhavi1021
Copy link

hi any one knows auto spamming if yes plzz tell me

@shivam5210
Copy link

Hii i want masss report script kisi k paas he??

@shivam5210
Copy link

@scriptnull Bhai help

@Excoy
Copy link

Excoy commented Feb 10, 2022

new?

@eonesun
Copy link

eonesun commented Mar 9, 2023

Hi, Why this error showed to me?
Uncaught TypeError: Cannot set properties of undefined (setting 'innerHTML')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment