Python3 module for deleting Slack messages and files using the Slack REST API
MIT License
bug fixes
new features:
SlackMessage.dt
and SlackMessage.thread_dt
as datetime objects of the timestamps. the default print has also changed to use the dt isoformatPublished by sgratzl almost 3 years ago
the list_files api uses a different type of pagination than other endpoints. This bugfix should make sure the right one is being used
Published by sgratzl about 3 years ago
major refactoring within the code to lazy fetch channels, channel members, and users. This leads to an improved scalability and faster start up time.
.members
attributein addition, there is support for listing and deleting message reactions
Published by sgratzl about 3 years ago
add support for adding team_id
for organization wide tokens
Published by sgratzl over 3 years ago
add new "show_files_hidden_by_limit" flag for listing files
Published by sgratzl over 3 years ago
fetch_members_failed
by handling it gracefully and not trying to fetch members of archived channelsPublished by sgratzl almost 4 years ago
fixes #41 by adding the missing requests
dependency
Published by sgratzl almost 4 years ago
migrate to https://github.com/slackapi/python-slack-sdk (see #38)
Published by sgratzl about 4 years ago
Published by sgratzl over 4 years ago
Published by sgratzl over 4 years ago
as_user=True
default to avoid invalid argument errorPublished by sgratzl over 4 years ago
.files
field to SlackMessage
containing all the files attached to the messageSlackMessage.delete
files=True
will also delete attached files, replies=True
does the same thing for the replies aka. thread.Thus, deleting everything possible should be reduced to:
s = SlackCleaner2(TOKEN)
for msg in s.msgs():
msg.delete(files=True, replies=True)
Published by sgratzl over 4 years ago
fixes #17 and #7 for a better support of message replies.
Published by sgratzl almost 5 years ago
Upgraded to python 3.7 with mypy typings.