Giter VIP home page Giter VIP logo

telegram-delete-all-messages's Introduction

telegram-delete-all-messages

Delete all your messages in private chats with python script. based on https://github.com/gurland/telegram-delete-all-messages

Installation

To install this script you have to download project and install requirements:

Linux

git clone https://github.com/borontov/telegram-delete-all-messages
cd telegram-delete-all-messages
pip install -r requirements.txt
python cleaner.py

Windows

  • Download zip file from this repo and unpack it
  • Install latest CPython 3 version
  • Run install.bat
  • Run start.bat

Obtain standalone telegram app API credentials

  • Login to https://my.telegram.org/
  • Select API development tools link
  • Create standalone application
  • Copy app_id and app_hash

Usage

You need both App ID and App hash to use script.

Environment variables

You could set APP_ID and APP_HASH environment variables to prevent entering API credentials manually.

Start

After starting script you will be prompted:

  • To enter your Telegram APP credentials (if no environment variables found)
  • Your account phone and then code sent to you by Telegram
$ python cleaner.py

Enter your Telegram API id: 123456
Enter your Telegram API hash: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Pyrogram v0.14.1, Copyright (C) 2017-2019 Dan <https://github.com/delivrance>
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

Enter phone number: +123456789012
Is "+123456789012" correct? (y/n): y
Enter phone code: 88988
Logged in successfully as Stanislav

Choosing chat

  • After providing needed information you will get your chat dialogs
  • Enter number found near desired chat title
1. Python community
2. Rust Beginners
3. IDE & Editors

Insert chat number:

Message removal process

  • After choosing chat you would get informed about messages removal process
Insert chat number: 2
Selected Rust Beginners

Searching messages. OFFSET: 0
Found 4 your messages in selected chats
Deleting 4 messages with next message IDs:
[23807, 23799, 23757, 23756]

telegram-delete-all-messages's People

Contributors

borontov avatar gurland avatar mehrad77 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.