Remy Remy - 1 month ago 12
C# Question

Ability to receive files with the MS bot framework

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.

Answer

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.

Attachments

Comments