Skip to content
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

Reply in thread using ResponseURL #1185

Open
Albert221 opened this issue Mar 25, 2023 · 0 comments
Open

Reply in thread using ResponseURL #1185

Albert221 opened this issue Mar 25, 2023 · 0 comments

Comments

@Albert221
Copy link

_, _, _, err = client.SendMessage(
	payload.Channel.ID,
	slack.MsgOptionResponseURL(payload.ResponseURL, slack.ResponseTypeInChannel),
	slack.MsgOptionTS(payload.Message.ThreadTimestamp),
	slack.MsgOptionText(reply, false),
)

This is my code. The MsgOptionTS sets the thread_ts, but it's not used later. I need it to send a message in thread: https://api.slack.com/interactivity/handling#publishing_in_thread

Logs:

slack-go/slack2023/03/25 10:02:05 chat.go:227: Sending request: {"text":"-","response_type":"in_channel","replace_original":false,"delete_original":false,"metadata":{"event_type":"","event_payload":null},"blocks":null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants