Logger.exception("Error while fetching the conversation history") Ts_list = for item in all_messages]Ĭursor=result, """Method to fetch the conversation history of particular channel""" def get_conversation_history(self, channel_id, latest, oldest): In order to retrieve all the messages from a particular channel in slack this can be done by using conversations.history method in slack_sdk library in python. Threads function a bit like conversations within a conversation and need to be downloaded separately.Ĭheck out this page of the official documentation for more details on threading. In addition use conversations.replies to download threads in a conversation.
0 Comments
Leave a Reply. |