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.
@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