You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: