Can a Slack bot get the thread id that a slash com

2020-06-04 00:12发布

Suppose a user types a slash command inside a thread, as opposed to inside the main channel.

Is it possible for to include this information in the request sent to the bot? I want the bot to know where exactly the message came from so that it can reply in the same location (i.e. inside the thread and not in the main channel)

Judging by the docs, it seems information about threads is not sent. Here is the POST object that the docs say is sent:

token=gIkuvaNzQIHg97ATvDxqgjtO
&team_id=T0001
&team_domain=example
&enterprise_id=E0001
&enterprise_name=Globular%20Construct%20Inc
&channel_id=C2147483705
&channel_name=test
&user_id=U2147483697
&user_name=Steve
&command=/weather
&text=94070
&response_url=https://hooks.slack.com/commands/1234/5678
&trigger_id=13345224609.738474920.8088930838d88f008e0

Does anyone know if there is a way to do this?

0条回答
登录 后发表回答