I'm trying to create a python script that reads all messages from a channel (e.g. Retrieving conversation history). However, there is no implementation of that directly in this SDK. Closest thing is listing all channels.
There is a way to call any api method using this general form (also shown below). I cannot figure out the syntax for passing arguments with the "conversations.history" method found here. My current try is at the bottom.
response = client.api_call(
api_method='chat.postMessage',
json={'channel': '#random','text': "Hello world!"}
)
##########
response = client.api_call(
api_method='conversations.history',
token=slack_token,
channel="C0XXXXXXXXX"
)
This search on the GitHub may also help for those inclined.