Skip to content

hubgram/cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Message Cleaner for Telegram

in progress

Installation

Clone from git and Install the requirements

git clone www.github.com/i-Telegram/cleaner
cd cleaner
pip install -r requirements.txt

Run

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

Usage

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 ago

m = min, h=hour, 10h 5m = 10:5

TODO

  • Refactor and remove duplicated codes
  • Change peer storage behavior
  • Make it Async!
  • Clear for basic groups

License

MIT

About

Telegram message cleaner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages