SlackAPI icon indicating copy to clipboard operation
SlackAPI copied to clipboard

Tagging and formatting message text

Open gapin opened this issue 7 years ago • 2 comments

Is it possible to tag channel? I tried setting in the body message @channel and !channel (according to slack api documentation) but it's not woking.

And also, is it possible to use * (for bold) and _ (for italic) in the body messages when using attachments?

Thanks in advance!

gapin avatar Dec 11 '17 20:12 gapin

You can use the * and _ for editing font in the message. But, I was also unable to tag a channel or specific user

Texas-E avatar Aug 06 '19 13:08 Texas-E

You can tag with the formatting described here: https://api.slack.com/reference/surfaces/formatting#special-mentions

string text = "A problem has occurred";

client.PostMessage((resp) => {}, "yourChannel", $"<!here> Error: {text}";

The linkNames parameter was deprecated in 2017 or 2018.

seangwright avatar Feb 23 '21 17:02 seangwright