SlackAPI
SlackAPI copied to clipboard
Tagging and formatting message text
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!
You can use the * and _ for editing font in the message. But, I was also unable to tag a channel or specific user
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.