Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Add attachments to webex teams adapter to support adaptive cards fixes #1759 #1760

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/botbuilder-adapter-webex/src/webex_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down