Skip to content

Reply in thread using ResponseURL #1185

@Albert221

Description

@Albert221
_, _, _, 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}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions