Description
Hi Team,
Issue: when i post a command as a thread message, its automatically getting reposted as a direct message also...
payload sent from slack after posting the command -
{"type":"message","subtype":"message_replied","hidden":true,"message":{"client_msg_id":"","type":"message","text":"<> create ticket","user":"","ts":"1607538628.001600","team":"","blocks":[{"type":"rich_text","block_id":"0cSo","elements":[{"type":"rich_text_section","elements":[{"type":"user","user_id":""},{"type":"text","text":" create ticket"}]}]}],"thread_ts":"1607538628.001600","reply_count":1,"reply_users_count":1,"latest_reply":"1607538692.001700","reply_users":[""]},"channel":"","event_ts":"1607538692.001800","ts":"1607538692.001800"}
payload pushed to slack after performing few actions -
{"type":"message","id":1,"text":"Ticket created - https://abcd.abcd.com","channel":"","thread_ts":"1607626974.008800"}
ps: i've removed the user id, client id and channel id..
What i've done -> using conversations.history i've retrieved the text of the parent message. And performing some actions and again posting the result of that action to that channel as a reply thread.
Here only problem am facing is, when i post a command as thread message in slack channel, its automatically getting posted as a direct message also...
Kindly help me in resolving this.
Thanks,
Reshma.