trying to upload a file from a build server following the doc: https://api.slack.com/methods/files.upload
And also using bot token: https://api.slack.com/authentication/basics
I am getting the error: {"ok":false,"error":"not_in_channel"}
Appreciate any help and pointers!
This error occurs when a bot oauth token is used and the bot isn't in the target channel(s).
To fix:
/invite @BOT_NAME