Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enables cleaner to delete message from non supergroups #7

Merged
merged 1 commit into from
Jul 4, 2020

Conversation

theatischbein
Copy link
Contributor

This PR will let the user choose between super groups and non super groups at the startup. Afterwards the program runs as usually.
There was only a fix needed for the q.count.

Additionally I fixed receiving the API_HASH as an environment variable. There were two times API_ID.

Sample Output:

jonny@xxxx:~/telegram-delete-all-messages$ python3 cleaner.py 
Pyrogram v0.17.1, Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

1. Supergroup
2. (non super)Group
Insert group type: 2

1. yyyyyyyyyyyyyyyyyyyy
2. xxxxxxxxxxxxxxxxxxxx
3. xxxxxxxxxxxxxxxxxxxx
4. xxxxxxxxxxxxxxxxxxxx 
5. xxxxxxxxxxxxxxxxxxxx
6. xxxxxxxxxxxxxxxxxxxx
7. xxxxxxxxxxxxxxxxxxxx
8. xxxxxxxxxxxxxxxxxxxx
9. xxxxxxxxxxxxxxxxxxxx
10. xxxxxxxxxxxxxxxxxxx
11. xxxxxxxxxxxxxxxxxxx
12. xxxxxxxxxxxxxxxxxxx
13. xxxxxxxxxxxxxxxxxxx
14. xxxxxxxxxxxxxxxxxxx
15. xxxxxxxxxxxxxxxxxxx
16. xxxxxxxxxxxxxxxxxxx
17. xxxxxxxxxxxxxxxxxxx
18. xxxxxxxxxxxxxxxxxxx
19. xxxxxxxxxxxxxxxxxxx
20. xxxxxxxxxxxxxxxxxxx
21. xxxxxxxxxxxxxxxxxxx
22. xxxxxxxxxxxxxxxxxxx
23. xxxxxxxxxxxxxxxxxxx
24. xxxxxxxxxxxxxxxxxxx
25. xxxxxxxxxxxxxxxxxxx
26. xxxxxxxxxxxxxxxxxxx
27. xxxxxxxxxxxxxxxxxxx
28. xxxxxxxxxxxxxxxxxxx
29. xxxxxxxxxxxxxxxxxxx
30. xxxxxxxxxxxxxxxxxxx
31. xxxxxxxxxxxxxxxxxxx
32. xxxxxxxxxxxxxxxxxxx
33. xxxxxxxxxxxxxxxxxxx
34. xxxxxxxxxxxxxxxxxxx
35. xxxxxxxxxxxxxxxxxxx
36. xxxxxxxxxxxxxxxxxxx
37. xxxxxxxxxxxxxxxxxxx
38. xxxxxxxxxxxxxxxxxxx
39. xxxxxxxxxxxxxxxxxxx
40. xxxxxxxxxxxxxxxxxxx
41. xxxxxxxxxxxxxxxxxxx
42. xxxxxxxxxxxxxxxxxxx
43. xxxxxxxxxxxxxxxxxxx
44. xxxxxxxxxxxxxxxxxxx
45. xxxxxxxxxxxxxxxxxxx

Insert group number: 1
Selected yyyyyyyyyyyyyyy

Searching messages. OFFSET: 0
Found 2 your messages in selected group
Deleting 2 messages with next message IDs:
[xx18, xxx14]

@theatischbein theatischbein changed the title Enables clenar to delete message froum non supergroups Enables cleaner to delete message from non supergroups Jun 2, 2020
Copy link
Owner

@gurland gurland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

@gurland gurland merged commit 0768740 into gurland:master Jul 4, 2020
@gurland gurland mentioned this pull request Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants