Ability to receive files with the MS bot framework

后端 未结 2 1715
青春惊慌失措
青春惊慌失措 2021-01-15 02:25

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 th

相关标签:
2条回答
  • 2021-01-15 02:42

    I found IList<Microsoft.Bot.Connector.Attachment> Attachments in Microsoft.Bot.Connector.Message class.

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

    No documentation though, sad.


    UPDATE (April 01, 2016)

    I did a quick testing with the emulator

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

    0 讨论(0)
  • 2021-01-15 02:50

    You can find some documentation on attachments here:

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

    You can also use the "ChannelData" field to take advantage of some of the special features offered by Email and Slack:

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

    0 讨论(0)
提交回复
热议问题