Userbot to delete your messages on command
git clone https://github.com/jsonic1337/TgDelBot/
cd TgDelBot
pip3 install -U pyrogram
pip3 install -U tgcrypto
Open "main.py" and insert data from your account into the signed lines (data must be taken from https://my.telegram.org/apps)
python3 main.py
After this command, enter all the data for authorization
For the script to work permanently, we use pm2:
npm install pm2 -g
pm2 start main.py --interpreter=python3 --name=TgDelBot
- Delete all messages in this chat – /delall
- Deleting an arbitrary number of messages – oh or ohnumber
- Deleting an arbitrary number of messages with editing – oh- or oh-number