Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a Snippet in Slack from a webhook

Is it possible to post a message in Slack from a webhook with a Snippet?

like image 610
parsley72 Avatar asked Mar 30 '18 22:03

parsley72


1 Answers

No, you can only post messages incl. attachments with webhook.

If you want to post a snippet, you need to use the API method files.upload. Snippets are automatically created based on the specified or detected filetype.

like image 131
Erik Kalkoken Avatar answered Oct 30 '22 20:10

Erik Kalkoken