How to send attachment in slack bot using SlackClient for node.js

1.5k views Asked by At

I want to send image, text and bullet point with different colours. I am only able to send back message using slackClient.sendMessage(botSays(parsedResp, witError, message) , message.channel);

But I don't know how to send attachment. Any help will be appreciable

Thanks

1

There are 1 answers

0
Saurav On BEST ANSWER

I found the answer. Attachments can be sent to user via IncomingWebhook or Web Api. There are many html text formatting and image attachment also possible. Slack Attachment api