slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.63k stars 1.12k forks source link

Fetching file attachments #1160

Closed kirill-artamonov-form3 closed 1 year ago

kirill-artamonov-form3 commented 1 year ago

Description

We have emails sent to a Slack channels. Those email have attachments that we want to read via API.

With GetConversationHistory and ListFiles, we have a link to download the email, but not the attachment.

(Optional) Slack's documentation

Somehow it's not documented on for a file type, but when examining JSON responses from Slack for both calls, I see that there's attachments attribute on the file object containing the link that we need.

kanata2 commented 1 year ago

@kirill-artamonov-form3 Please see Python, Node or Java SDK. If this field is added in these SDKs, you can assume that it is officially supported it, even if not documented.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 10 days with no activity.