https://docs.botframework.com/en-us/core-concepts/channeldata Beispiel Befestigungs https://api.slack.com/docs/message-attachments müssen Sie Quell- und Twist-Anlage in folgenden Code ändern. Ich bin in der Lage mit reichem Dokument in slack umgeht dieses slack Beispiel mit vielfältigen Inhalten mit Microsoft bietet Rahmen verweisen
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);
});
Ja, gibt es Dokumentation, aber viel Glück das Bit zu finden, die Sie sagt, tatsächlich, wie es zu implementieren . Ich habe Folgendes gefunden: https://docs.botframework.com/en-us/csharp/builder/sdkreference/activities.html, was Ihnen die Abschriften zeigt, aber nicht zeigt, wie Sie es in Ihren Code implementieren. Microsoft-Dokumentation ist nicht hilfreich und Scheiße. – blueprintChris