Ability to receive files with the MS bot framework

后端 未结 2 1742
青春惊慌失措
青春惊慌失措 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条回答
  •  猫巷女王i
    2021-01-15 02:42

    I found IList 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.

提交回复
热议问题