Delete all your messages in groups / supergroups using this python script
Delete all your messages in supergroups with python script.
To install this script you have to download project and install requirements:
git clone https://github.com/gurland/telegram-delete-all-messages
cd telegram-delete-all-messages
pip install -r requirements.txt
python cleaner.py
API development tools
linkYou need both App api_id and App api_hash to use script.
You could set API_ID and API_HASH environment variables to prevent entering API credentials manually.
After starting script you will be prompted:
$ 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
1. Python community
2. Rust Beginners
3. IDE & Editors
Insert group number:
Insert group number: 2
Selected Rust Beginners
Searching messages. OFFSET: 0
Found 4 your messages in selected supergroup
Deleting 4 messages with next message IDs:
[23807, 23799, 23757, 23756]
To make any changes in our codebase, please do the following:
git checkout -b fix-sleep-treshold
.Note: it's very important to keep PRs brief and clear. Resolve single issue by a single PR.