Skip to content

Andrey-Lomakin/goodbye_telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delete message history from Telegram chats (text messages only)

Attention: this script will delete your messages and make them inaccessible to other users, but not to the telegram server.

Install

  1. Clone this repo
  2. Run
npm install

Usage

1. Creating your Telegram Application (required)

https://core.telegram.org/api/obtaining_api_id

2. Create a .env file in the root directory of your project. (optional)

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

3. Run

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!