in progress |
Clone from git and Install the requirements
git clone www.github.com/i-Telegram/cleaner
cd cleaner
pip install -r requirements.txt
Put your API Key and Admin ID in cleaner.ini
config file (how to obtain API Key?)
[cleaner]
api_id = 12345
api_hash = 0123456789abcdef0123456789abcdef
admin_id = 123456
start with this command in source directory
python3 -m cleaner
stop with CTRL+C
list of commands
[!/#]clear
delete all messages in group
[!/#]del TYPE N
delete N messages of TYPE Messages
TYPE can be : [ text, photo_video, audio, document, photo, sticker, video, animation,
voice_note, video_note, contact, location, url] for example:
#del photo 10
delete last 10 photo messages
!del video
delete all video messages
/del 10
delete 10 recent messages
[!/#]del Xhour Ymin
delete messages until X hour and Y minute ago
[!/#]del -Xhour Ymin
delete messages before X hour and Y minute ago
/del 10m
delete messages until 10 minutes agom = min, h=hour, 10h 5m = 10:5
- Refactor and remove duplicated codes
- Change peer storage behavior
- Make it Async!
- Clear for basic groups