Comments (2)
From ixearth's reply to #5
I would recommend to add multiple command-line arguments such like
-type group supergroup -id
The value of -type can be private, group, supergroup or channel, the id can be chat id of any of them (the one need to add quote characters when the id was negative number). Users should also be able to get chat IDs by using the script.
btw is "Saved Message" also being considered as personal chat? If it is then maybe it should be noted in the help message to avoid data loss. the one may don't think "Saved Message" as any of that four chat type. (you may add the dialogue to ask user to type yes to confirm, it won't be a problem if the one could run it as yes | cleaner.py when he needs to run it in non-interactive mode)
The reason I need to delete all of my chat message is I want to delete them before I delete my account, this use case is very rare, so I think -type is enough for such needs and -all is not necessary.
I need to delete messages from certain groups and private chats every period of time, so -id would be much useful for me to run the script with crontab.
from telegram-delete-all-messages.
It would be great to use a command line with args to exclude or include some groups by ID, So people can write a crontab schedule to delete messages during a specified time.
from telegram-delete-all-messages.
Related Issues (20)
- Needs to readapt to the latest version of Pyrogram HOT 7
- SyntaxError: invalid syntax HOT 1
- Doesn't show groups that you haven't joined but have messages in
- [Feature Request] Add command line mode with args HOT 1
- [bug] update pyrogram HOT 1
- The older messages are not getting deleted. HOT 2
- TypeError: get_dialogs() got an unexpected keyword argument 'pinned_only' HOT 4
- Forward all group messages to another group? HOT 1
- Some groups are listed twice HOT 1
- Not deleting all massages HOT 1
- Syntax error line 72 print(f' {i+1}. {group.title}') HOT 2
- Error HOT 1
- Sorry if this is a bad way to ask HOT 1
- It used to run the script very well, but in the last few days it reported the following error: HOT 6
- TypeError: get_dialogs() got an unexpected keyword argument 'pinned_only' HOT 2
- I ran the script today and found the following error: HOT 1
- If you see an error UnicodeEncodeError: 'ascii' codec can't encode characters
- msg_id is too low error HOT 5
- not working HOT 1
- get_dialogs() got an unexpected keyword argument 'pinned_only' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-delete-all-messages.