Update redact_all_messages.py

This commit is contained in:
cynic 2024-06-01 12:53:15 -05:00
parent 82839e1365
commit dd9949f3f5

View File

@ -18,6 +18,7 @@ def get_all_encrypted_messages(homeserver, room_id, access_token):
next_batch = None
while True:
print("Reading messages...")
# don't get throttled
sleep(sleep_for_seconds)
params = {
"dir": "b",
@ -55,7 +56,7 @@ def redact_message(message):
headers = {
"Authorization": f"Bearer {access_token}"
}
# don't get throtled
# don't get throttled
sleep(sleep_for_seconds)
response = requests.put(url, json={"reason":""}, headers=headers)
print(pformat(response))