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

Skype: Not able to send file attachment to user

Open BirenPanigrahi opened this issue 9 years ago • 11 comments

I am not able to send file attachment from BOT to user in Skype.

I am using BOT builder version 3.5.0.

Below is my code.

ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl)); Activity reply = activity.CreateReply("blah"); reply.Attachments = new List(); Attachment attach = new Attachment();

attach.ContentType = "application/pdf"; // I can browse the below URL in browser and access the PDF attach.ContentUrl = "https://test.azurewebsites.net/Image/Test.pdf"; attach.Name = "Test.pdf"; attach.Content = "Test"; attach.ThumbnailUrl = attach.ContentUrl; reply.Attachments.Add(attach); await connector.Conversations.ReplyToActivityAsync(reply);

BirenPanigrahi avatar Jan 06 '17 15:01 BirenPanigrahi

Send files from a user to a bot is not yet supported. We are aware of this gap and will address it as early as we can.

nickcordrey avatar Jan 09 '17 17:01 nickcordrey

@nickcordrey I assume you meant send files from Bot to User. This is something that clients are asking for. Bots can send image as attachment, but clients would also like the bot to send a file to the user. Example scenario: User asks bot information regarding some product and Bot sends the Product brochure.

abhishan avatar Jan 10 '17 01:01 abhishan

Is there any update about solution?

YigitCiray avatar Feb 27 '17 19:02 YigitCiray

any updates? I am also facing the same issue. My BoT is able to send attachments, when I test same on Emulator, bot not on skype. Please, help me out!

khushboo22singh avatar Oct 22 '17 14:10 khushboo22singh

This would be great. Even if its a web hosted PDF. Currently my bot returns "Failed with message: Unknown attachment type"

The WebChat works perfectly tough.

NinoMarra avatar Oct 26 '17 20:10 NinoMarra

Same issue here. Any updates?

srichakradhar avatar Nov 30 '17 02:11 srichakradhar

I have same issue. How to send an .docx attachment to user?

odysseus1973 avatar Dec 21 '17 09:12 odysseus1973

@nickcordrey hi. any update on it?

ma3yta avatar Jan 15 '18 06:01 ma3yta

@nickcordrey I am getting Unknown mime type for application/pdf and application/octet-stream in Skype

ma3yta avatar Jan 15 '18 07:01 ma3yta

I am also facing the same issue in sending pdfs. Any updates?

jopuneet avatar Jun 11 '18 13:06 jopuneet

I am also facing the same issue. Both bot framework and Skype are Microsoft products. My boss is going to kill me for using bot framework and Skype. Please help!!!

leungkimming avatar Oct 18 '18 15:10 leungkimming