How do we access old channel messages with the slackclient before the bot was added to the channel. Is this possible in the first place?
x in one of the [ ])x in each of the [ ])You sure can. You鈥檒l have to use the Web API to call the channels.history method.
sc.api_call("channels.history", options)
Hi @aoberoi Thank you for that. Is it restricted to 1000 messages though?
No, you can go back to the beginning of the channel history. You just can鈥檛 get more than 1000 messages at a time. Use the latest and oldest options to traverse the history by a chunk at a time.
Perfect, thank you :)
Most helpful comment
No, you can go back to the beginning of the channel history. You just can鈥檛 get more than 1000 messages at a time. Use the
latestandoldestoptions to traverse the history by a chunk at a time.