A simple script to delete all your Telegram messages, for you and your contacts.
Create a Telegram application project on Telegram website here.
You need three environnment variables.
TELEGRAM_API_ID
: ID of your Telegram Application.TELEGRAM_API_HASH
: Hash of your Telegram Application.TELEGRAM_API_NAME
: Name of your Telegram Application.
Then just run the script with env variables set.
python3 ./delete_every_message.py
You need the telethon python module.