Closed revgizmo closed 9 months ago
Thanks for the report! Looking into this
Alright, so I highly suspect that this is because you're using a bot token, and bot tokens can't read arbitrary IMs between people in Slack (not 100% sure of this). Can you confirm you're using a bot token? And if yes, can you also confirm that your bot isn't added explicitly as an app inside your IM you want to read (unsure if this is even possible).
I suspect that reading IM history will work if you use a user token, but not 100% sure
Confirmed:
Yeah, that's right. And thanks! Do you mind trying to add your bot to the IM you want to read? The other thing you could try is making the API calls directly using https://api.slack.com/methods/conversations.history to see if they work. If they do, it's almost certainly a slackr
issue, but if they don't (which I suspect they won't), then it's probably because the bot needs to be added to your chat
I know that's not particularly helpful, but unfortunately I'm having trouble reproducing this issue in my sandbox account
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
slackr_history() is working for channels but not ims.
I also tried replacing the @ name with the ID and channel from slackr_ims() to no avail. I appear to have all 4 of the :history scopes.
Works:
Created on 2023-09-08 with reprex v2.0.2
Doesn't work:
Created on 2023-09-08 with reprex v2.0.2