Skip to content

Unfurling links in messages  #94

Description

@christos-P

Hi,

I would like to suggest an enhancement for SlackMesage that would allow us to utilize unfurling links in messages we post. Despite the fact that here is described that:

By default we unfurl all links in any messages posted by users and Slack apps.

Inside the slack app directory for a channel under:

image

In the Message Attachments area we can find this:

image

In an integration we did with a slack webhook, we found that we had to pass also this property to the slack message, in order unfurling of our links to work.

Our quick solution was to do this (since we always wanted unfurling of our links to work):

public class ExtendedSlackMessage : SlackMessage
{
    public bool unfurl_links { get; } = true;
}

and instead of creating instances of SlackMessage, we decided to create instances of ExtendedSlackMessage to post

slackClient.Post(slackMessage);

A more clean solution, it would be to define this as a property in SlackMessage class.

Do you want I open a PR for this enhancment ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions