From 4c3fe3cd8eba03c00fc6f93e22931ca1d419eeb4 Mon Sep 17 00:00:00 2001 From: Darren Parkinson Date: Wed, 7 Aug 2019 16:13:44 +0100 Subject: [PATCH] Add attachments to webex teams adapter to support adaptive cards - fixes #1759 --- packages/botbuilder-adapter-webex/src/webex_adapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/botbuilder-adapter-webex/src/webex_adapter.ts b/packages/botbuilder-adapter-webex/src/webex_adapter.ts index e9fa64105..520657da0 100644 --- a/packages/botbuilder-adapter-webex/src/webex_adapter.ts +++ b/packages/botbuilder-adapter-webex/src/webex_adapter.ts @@ -333,7 +333,10 @@ export class WebexAdapter extends BotAdapter { } else if (activity.channelData && activity.channelData.toPersonEmail) { message.toPersonEmail = activity.channelData.toPersonEmail; } - + if (activity.attachments) { + message.attachments = activity.attachments; + } + let response = await this._api.messages.create(message); responses.push(response);