botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Simple Attachments on Skype Channel

Open XelaMon opened this issue 10 years ago • 5 comments

My bot attaches some messages to its activities before replying to a user. Right now, I have them all as the simple Media Attachment example with the ContentType, ContentUrl, and Name fields populated.

I have the bot exposed on Direct Line and some information about those attachments comes through on that channel. However, I have added my bot to the Skype channel and I don't see the attachments come through on that channel.

I am using the v3 version of the Bot Framework with the .NET Bot Builder. I am testing this on Skype Web with the developer options enabled.

XelaMon avatar Jul 25 '16 23:07 XelaMon

ContentUrl should be either https for skype or a valid base64 encoded data Url.

msft-shahins avatar Jul 26 '16 00:07 msft-shahins

Awesome, thanks!

XelaMon avatar Jul 26 '16 16:07 XelaMon

@msft-shahins I might need to open a different issue, but it looks like there is a bug with the Skype channel if the base64 encoded data URL is above a certain length.

  • if I send the same image to Slack it works fine
  • if I send a smaller image to Skype it works

I am getting errors like this:

Error: Request to 'https://skype.botframework.com/v3/conversations/xyz/activities' failed: [500] Internal Server Error

thingista avatar Aug 12 '16 23:08 thingista

@thingista feel free to open a separate issue about this.

msft-shahins avatar Aug 12 '16 23:08 msft-shahins

What is the size limit for attachments using base64 encoded data url, because I am sending a 254kb file as attachment (base64 encoded) it always gives error : 400 bad request, but the same works fine in case of 25-30 KB files.

vinodjoseph62 avatar Dec 12 '16 10:12 vinodjoseph62