os / slacker

Full-featured Python interface for the Slack API
Apache License 2.0
1.6k stars 245 forks source link

im.history error - channel_not_found #125

Closed kthouz closed 6 years ago

kthouz commented 6 years ago

I am trying to get history of im. When I run

slack.im.history(channel='<channel_id>')

I get an error "channel_not_found".

My question is what should I put as channel? Channel name or id? Due to lack of documentation, I am not being able to have this running right.

os commented 6 years ago

Hi @kthouz. Sorry for the late reply, I've been busy with so many other things. It's the channel ID, see official documentation https://api.slack.com/methods/im.history.