-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a command is posted in thread, its again posted as direct message automatically #274
Comments
This is really a Slack API question, but looking at https://api.slack.com/methods/chat.postMessage#arg_reply_broadcast |
Hi, My code:
|
This is the response i got when i posted a command in slack channel: Here, thread_ts and ts are different... is it because of that? |
This is really a Slack API question, I don't know more than the documentation here. The I would switch to Please note that real-time bots are not even accepted in the slack directory any more, you should be using a bot with granular permissions. read this |
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.
The text was updated successfully, but these errors were encountered: