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

How to add a thread message if using slacker #158

@as3379

Description

@as3379

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions