I am using slash commands with answers that will take more than 3 seconds so I'm using a lazy_listener, e.g. lazy_listener.
I wonder if there's any way to add to the payload the thread_ts of the ack function to the lazy one SlashCommandPayload.json
Reproducible in:
def fetch_data(respond, body):
data = get(...)
respond(f"Data: {data}")
def delayed_response(body, say):
ack()
# I can append data to the `body` and access it in the `fetch_data` function.
response = say('Fetching info...')
# Once I post a message I can access the `thread_ts` from `response`
# But I can't modify the body here so I can't pass the `thread_ts` to the `fetch_data` function
app.command("/get-data")(
ack=delayed_response,
lazy=[fetch_data]
)
Hi!
I am using slash commands with answers that will take more than 3 seconds so I'm using a lazy_listener, e.g. lazy_listener.
I wonder if there's any way to add to the payload the
thread_ts
of theack
function to the lazy one SlashCommandPayload.jsonReproducible in:
Thanks.