0
votes

I'm working on an integration between Microsoft Teams and Slack.

I'm building a Microsoft Teams application which is connected to a Microsoft Bot.

Additionally, I created a server for:

  1. Listening to messages which were sent by users in Slack (via Slack webhooks)

  2. Posting them in Microsoft Teams conversation as a user message to the bot (outgoing message)

I receive messages from Slack (which were sent by a Slack user) to my server and I wish to post them in Microsoft Teams as messages from the user to the bot and I'm not able to do so.

I'm able to send messages from Bot to user in Microsoft Teams app via Microsoft Bot's "botbuilder" Node.js SDK:

session.send(message);

How can I send the message on the other direction (from user to bot)?

1
Did you find my answer sufficient? If so, please "accept" and upvote it so others can quickly find the answer and I can clear this from my support tracker. If not, let me know how else I can help!mdrichardson

1 Answers

0
votes

You can't. See this question for more info, but the short version is:

  • The BotFramework has no direct way to do this.
  • Even the Teams Graph API doesn't currently support this. They're working on it, but don't have an ETA.

The closest thing to a workaround would be:

  1. User writes message in Slack to Bot
  2. Bot receives message and posts a proactive message in Teams, something like:

User @louis1600 said: "blah blah blah"

Resources: