Attention: this script will delete your messages and make them inaccessible to other users, but not to the telegram server.
- Clone this repo
- Run
npm install
https://core.telegram.org/api/obtaining_api_id
API_ID={insert your API_ID}
API_HASH={insert your API_ID}
USER_PHONE={insert your phone number}
USER_PASSWORD={insert your password}
OR will be requested at runtime
node ./index.js
At runtime, it will show your chats.
You will choose a chat and you will be asked how many messages to leave (and will show your messages).
Profit!