https://docs.botframework.com/en-us/core-concepts/channeldata esempio attaccamento https://api.slack.com/docs/message-attachments devi cambiare fonte e l'attaccamento torsione nel codice di seguito. Sono in grado di affrontare con una ricca documento allentamento riferimento questo esempio molle con contenuti ricchi con quadro bot Microsoft
enter code here
bot.dialog('/', function (session) {
session.send('Looking into your upcoming flights to see if you check-in on any of those...');
var card = {
slack: {
"attachments": [
{
"fallback": "Required plain-text summary of the attachment.",
"color": "#36a64f",
"pretext": "Optional text that appears above the attachment block",
"author_name": "Bobby Tables",
"author_link": "http://flickr.com/bobby/",
"author_icon": "http://flickr.com/icons/bobby.jpg",
"title": "Slack API Documentation",
"title_link": "https://api.slack.com/",
"text": "Optional text that appears within the attachment",
"fields": [
{
"title": "Priority",
"value": "High",
"short": false
}
],
"image_url": "http://my-website.com/path/to/image.jpg",
"thumb_url": "http://example.com/path/to/thumb.png",
"footer": "Slack API",
"footer_icon": "https://platform.slack-edge.com/img/default_application_icon.png",
"ts": 123456789
}
]
}
}
var msg = new builder.Message(session).sourceEvent(card);
session.send(msg);
});
fonte
2017-02-26 13:30:09
Sì, esiste una documentazione, ma buona fortuna nel trovare la parte che si dice in realtà come implementarlo . Ho trovato questo: https://docs.botframework.com/en-us/csharp/builder/sdkreference/activities.html che mostra quali sono i markdown ma NON ti mostra come implementarlo nel tuo codice. La documentazione di Microsoft non è utile e merda. – blueprintChris