I am using slack incoming web hook to post message to a channel. Here is my code
curl -X POST \
https://hooks.slack.com/services/TXXXXXXXX/BXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX \
-H 'Content-Type: application/json' \
-d '{
"text": "Test message"
}'
I am getting ok
as response. I need thread id(thread_ts
or ts
) to reply to that thread.
How can I get thread id while posting message to slack using incoming web hooks