能够使用MS Bot框架接收文件 [英] Ability to receive files with the MS bot framework

查看:35
本文介绍了能够使用MS Bot框架接收文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可能还不太了解这一点,但是是否可以通过新的Microsoft Bot Framework接收文件(主要是通过Skype)?
我在文档中找不到任何内容.

I might be a bit early on this, but is it somehow possible to also receive files (mainly via Skype) with the new Microsoft Bot Framework?
I couldn't find anything in the documentation.

推荐答案

我在Microsoft.Bot.Connector.Message类中找到了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日)

我使用模拟器进行了快速测试

I did a quick testing with the emulator

您可以清楚地看到仿真器中API的响应.

You can clearly see what the response from the API in the emulator.

这篇关于能够使用MS Bot框架接收文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆