能够使用 MS 机器人框架接收文件

Ability to receive files with the MS bot framework

我可能有点早,但是是否可以通过新的 Microsoft Bot Framework 接收文件(主要通过 Skype)?
我在文档中找不到任何内容。

我在 Microsoft.Bot.Connector.Message class 中找到了 IList<Microsoft.Bot.Connector.Attachment> Attachments

foreach (var attachment in message.Attachments)
{
    var content = attachment.Content; // I think the content of uploaded file here.
}

虽然没有文档,可悲。


更新(2016 年 4 月 1 日)

我用模拟器做了一个快速测试

你可以清楚地看到模拟器中API的响应。

您可以在此处找到有关附件的一些文档:

http://docs.botframework.com/connector/message-content/#attachments

您还可以使用 "ChannelData" 字段来利用电子邮件和 Slack 提供的一些特殊功能:

http://docs.botframework.com/connector/custom-channeldata/