Created
April 29, 2024 01:15
-
-
Save zckyachmd/282e2b71e42f943e810172e55ca85b90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Telegram Spam Chat | |
// Description: Send random messages to chat every 5 - 15 seconds | |
// Note: Use with caution, author is not responsible for any misuse or damage caused by this script (use for educational purposes only) | |
// Usage: Open Telegram Web, open chat, open console, paste code, press Enter to run script (press Enter again to stop) | |
const messages = [ | |
'Message 1', | |
'Message 2', | |
'Message 3', | |
'Message 4', | |
'Message 5', // Add more messages here | |
]; | |
const sendMessage = (data) => { | |
document.getElementsByClassName('input-message-input')[0].innerHTML = data; | |
document.querySelector('.btn-send').click(); | |
}; | |
do { | |
// Send 1 message from messages array to chat | |
sendMessage(messages[Math.floor(Math.random() * messages.length)]); | |
// Delay for 5 - 15 seconds prevent spamming detection | |
await new Promise((resolve) => | |
setTimeout(resolve, Math.floor(Math.random() * 10000) + 5000) | |
); | |
} while (true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment