nommaz / ownslack

Owncloud to slack alerts
0 stars 0 forks source link

Post styling #4

Closed nommaz closed 7 years ago

nommaz commented 7 years ago

The style of the post should be more detailed with description including full path and file size and also with file icon according to the specification

nommaz commented 7 years ago

Current:

current

Ideal:

ideal
VimalKP commented 7 years ago

@nommaz - the style you provided was only possible if we upload File Real time in Slack. we are just display as attachment. and in my Current example i have already used "attachment" function as you have provided.

Here is what we can do maximum with Attachment parameter. Below sample uses all available parameters in Attachment.. so we can only from this style : attachment

VimalKP commented 7 years ago

https://api.slack.com/docs/messages/builder?msg=%7B%22attachments%22%3A%5B%7B%22pretext%22%3A%22file_changed%22%2C%22title%22%3A%22Requirement%20-%20owncloud%20to%20slack.docx%22%2C%22title_link%22%3A%22https%3A%2F%2Fdocs.hugin.co%2Findex.php%2Fapps%2Fonlyoffice%2F119994%22%2C%22footer%22%3A%2264.31%20KB%20%2FYaz%C4%B1l%C4%B1m%2FProject%22%2C%22footer_icon%22%3A%22https%3A%2F%2Fdocs.hugin.co%2Fapps%2Fslack%2F12.png%22%7D%5D%7D