A userbot for deleting all messages from Telegram channels, groups, or private chats.
| Type | Works? | Requirement |
|---|---|---|
| Channels | ✅ Yes | Be admin/owner |
| Groups/Supergroups | ✅ Yes | Be admin with delete permission |
| Private chats | Only deletes your own messages |
- Node.js installed
- Telegram API credentials (
api_idandapi_hash)
# Clone the repository
git clone https://github.com/revoltz-dev/telegram-wipe.git
cd telegram-wipe
# Install dependencies
npm install- Go to my.telegram.org
- Log in with your phone number
- Open API development tools
- Create a new application (or use an existing one)
- Copy the
api_idandapi_hash
Open userbot.js and replace the credentials:
const api_id = 123456789; // Integer
const api_hash = "YOUR_API_HASH"; // Stringnode userbot.jsThe script will:
- Ask for your phone number (with country code, e.g.,
+5511999999999) - Ask for the verification code sent by Telegram
- Ask for your 2FA password (if you have one set up)
- Ask for the chat ID or @username you want to wipe
- Ask for confirmation before deleting
- Add @userinfobot or @getidsbot to the chat
- Or forward a message from the chat to one of those bots
- Channel/group IDs start with
-100(e.g.,-1001234567890) - You can also use the channel's
@username
===========================================
USERBOT - DELETE EVERYTHING
===========================================
? Enter your phone number: +5511999999999
? Enter the code you received: 12345
? Enter the channel ID: -1001234567890
? Confirm deleting ALL messages? (yes/no): yes
100 messages deleted...
200 messages deleted...
...
=== DONE: 1080 messages deleted ===
- Never share your
api_id,api_hash, or session string - The script does not store your credentials on any external server
- All processing is done locally
MIT License