I followed all steps described in the Slack thread. I added all scopes described there (even added extra ones) and I invited the app to the relevant channels.
The problem is that for 1% of cases it seems to work, see here:
But 99% in public channels I’m getting the error: “Error: unable to fetch users from Slack”
And in DMs: “Error: unable to fetch channel history from Slack”