SlackBot Cannot Delete Files

Asked 2 years ago, Updated 2 years ago, 48 views

I was making a slot bot where Python deletes files after a certain period of time, but when I tried to delete files using the bot token,
{'ok':False, 'error':'cant_delete_file', 'headers':{'Content-Type':'application/json; charset=utf-8', 'Content-Length':...}
I got a response like this.According to Slack's API, it seems that the file can be deleted. Why?I would appreciate it if you could reply.Thank you.
Run Environment
OS:Mac OS sierra
languages:Python 3.6.3

python slack

2022-09-30 21:32

1 Answers

test page of the Slack API.

{
    "ok"—false,
    "error": "cant_delete_file" 
}

If you can delete it manually and bot can't delete it, adding more information, such as python code and how to configure it, excluding information that should be hidden, such as tokens, may help you get answers.


2022-09-30 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.