-
Notifications
You must be signed in to change notification settings - Fork 150
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
Add support for sending threaded messages #119
Comments
Great idea for an enhancement 👍 |
You can do it with see #74 (review) |
Hey @kuboon, I tried this approach some time ago, and had some issues. Something does not work quite well with the output of the action. Let me explain my situation:
As you can see, there is no thread_ts nor ts which could help me send a threaded message. Checking the code of the action itself, I see thread_ts or ts are only outputed in this scenario:
And webResponse is only used IF bot_token is being used, never when using INCOMING_WEBHOOK / SLACK_WEBHOOK_URL
|
@robgutsopedra Using thread-ts does not work along with incoming webhooks. It works only with bot token + chat.postMessage API call. Here is an example demonstrating how to use it: slack-github-action/.github/workflows/main.yml Lines 21 to 46 in 4466b60
Also, this feature request is resolved in v1.19. Let me close this issue now. |
Hey @seratch, |
When you use Incoming Webhooks alone, there is no way to learn a specific message's ts (this operation requires channels:history, etc.). Therefore, to me, not supporting thread_ts for Incoming Webhooks is a reasonable API design to align with its minimal permission model. If you need to post a message, please use a combination of regular web APIs (meaning chat.postMessage + conversations.history). |
It would be helpful if this was noted in the readme as I had to come searching and find this issue to figure out why this wasn't working for me, since the readme currently says "Incoming Webhooks conform to the same rules and functionality as any of Slack's other messaging APIs" without noting any exceptions :) |
Description
Would like the ability to send a message into a thread by passing thread-ts from a previous message, with optional flag to broadcast the threaded message to the channel.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: