botframework icon indicating copy to clipboard operation
botframework copied to clipboard

How to handle messages with an attachment?

Open jay2deguzman opened this issue 7 years ago • 0 comments

When trying to send a message with an attachment, im getting an error exception, how can i handle this?

` if (activity.Type == ActivityTypes.Message) { try { await Conversation.SendAsync(activity, MakeRoot); } catch (Exception ex) {

            }
        }`

Exception: The remote server returned an error: (400) Bad Request. [File of type 'text/plain']

jay2deguzman avatar Oct 25 '17 09:10 jay2deguzman