This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Description
How to find ts_id from a given response. I'm trying to send a message to slack and add a thread to original message. To do so I need the ts_id of the original message. The code looks like:
response = client.chat.post_message(channel=channel, text=message)
ts = response['ts']
text = 'Copy into https://codebeautify.org/jsonviewer.'
client.chat.post_message(
channel=channel,
thread_ts=ts,
text=text
)
However, code fails to retrieve the ts value from response.