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

Webex Adapter sendActivities requires addition of attachments field to support adaptive cards. #1759

Closed
darrenparkinson opened this issue Aug 7, 2019 · 0 comments

Comments

@darrenparkinson
Copy link
Contributor

What are you trying to achieve or the steps to reproduce?

I'm trying to send adaptive cards to webex teams, but it seems the "attachments" field, whilst being set in the ensureMessageFormat function of packages/botkit/src/botworker.ts, is not being set in the packages/botbuilder-adapter-webex/src/webex_adapter.ts file for sending on to webex teams.

I'm hoping it might just be a case of updating the sendActivities function with:

if (activity.attachments) {
    message.attachments = activity.attachments;
}

What was the result you received?

No adaptive card is being sent.

What did you expect?

The adaptive card to be sent.

Context:

  • Botkit version: 4.5.0
  • Messaging Platform: Webex Teams
  • Node version: 10.16.0
  • Os: macOS 10.14.5
  • Any other relevant information: See the updated docs related to creating a message and also the new docs regarding adaptive cards
benbrown added a commit that referenced this issue Aug 7, 2019
Add attachments to webex teams adapter to support adaptive cards fixes #1759
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant