Skip to content

Add support for "attachment" feature#37

Merged
mistydemeo merged 2 commits intomasterfrom
add_attachment_support
Jun 26, 2018
Merged

Add support for "attachment" feature#37
mistydemeo merged 2 commits intomasterfrom
add_attachment_support

Conversation

@mistydemeo
Copy link
Contributor

This adds support for a new option, which allows servers to hint to clients that they should format the response as a separate attachment instead of returning it inline as a message. Because this is a hint, and because not all clients will support an attachment mode, clients are allowed to ignore this field for any reason.

For example, Slack supports "snippets", which are arbitrary text documents sent as attachments. These don't use Slack's normal message formatting and have a larger filesize limit.

cc @kpaulisse, who requested this feature.

This adds support for a new option, which allows servers to hint
to clients that they should format the response as a separate
attachment instead of returning it inline as a message.
Because this is a hint, and because not all clients will support
an attachment mode, clients are allowed to ignore this field for
any reason.

For example, Slack supports "snippets", which are arbitrary text
documents sent as attachments. These don't use Slack's normal message
formatting and have a larger filesize limit.
@kpaulisse
Copy link

@github/security-ops will be very happy to see this. We have a number of ChatOps that currently get cut off because slack is unfurling URLs which throws off the character count. Thank you!

@mistydemeo mistydemeo merged commit 1002a1a into master Jun 26, 2018
@mistydemeo mistydemeo deleted the add_attachment_support branch June 26, 2018 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants