mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
e937e0d3dd
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@chat-adapter/teams
Microsoft Teams adapter for Chat SDK. Uses Azure Bot Service for webhook handling and message delivery.
Installation
npm install chat @chat-adapter/teams
Usage
import { Chat } from "chat";
import { createTeamsAdapter } from "@chat-adapter/teams";
const bot = new Chat({
userName: "mybot",
adapters: {
teams: createTeamsAdapter({
appId: process.env.TEAMS_APP_ID!,
appPassword: process.env.TEAMS_APP_PASSWORD!,
appType: "SingleTenant",
appTenantId: process.env.TEAMS_APP_TENANT_ID!,
}),
},
});
bot.onNewMention(async (thread, message) => {
await thread.post("Hello from Teams!");
});
Documentation
Full setup instructions, configuration reference, and features at chat-sdk.dev/docs/adapters/teams.
License
MIT