Darragh
Darragh

Reputation: 223

How do I embed a Teams Channel Chat in a Web App

I looking for a little guidance. I have a need to display the chat content from a MS Teams channel into my web app.

The user of my web app will see the MS Team channel chat and be able to comment all of this in the web app.

What is the best / most appropriate approach for this use case?

Upvotes: 2

Views: 3120

Answers (2)

Jake
Jake

Reputation: 26107

Try this solution that Microsoft provides to embed Teams Chat into your website.

https://github.com/microsoft/EmbeddedTeamsChat

<div id="embed"></div>
<script src="/dist/graph/embeddedchat.min.js" />

<script>
teamsEmbeddedChat.renderEmbed(
    document.getElementById("embed"),
    {
        entityId: "987654",
        topicName: "Invoice 987654",
    }
);
</script>

Upvotes: 1

Gousia Begum
Gousia Begum

Reputation: 2124

It is not possible to show a Teams chat inside any other Web App. You could get the messages in a Teams channel using List Channel Messages and post your messages using Connectors but it not possible to directly show the Entire Teams channel chat in your web app.

Upvotes: 2

Related Questions