I'm starting out with the Slack API and trying to just get a list of messages.
Here are my steps:
- Created a Slack app and gave it
channels:readandchannels:historyscope (alsore-installedit) - Queried the list of channels with
conversations.list(this worked fine) - From the output of
conversations.list, I found a channel that I use and copied theid - Used the
conversations.historyapiwith thechannelidfrom step 3
Result:
{ "ok": false, "error": "not_in_channel" }
I'm not at all sure what is happening here. I definitely have messages in the channel, and the documentation page for that api does not say anything about this "not_in_channel" error code.
What am I doing wrong?
