Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This page isn't available from C#.
This page isn't available from Python.
A BotBuilder Adapter is similar to a Teams SDK Plugin in the sense that they are both
an abstraction that is meant to send/receive activities. To make migrating stress free we have
shipped a pre-built BotBuilderPlugin that can accept a botbuilder Adapter instance.
Note
this snippet shows how to use the BotBuilderPlugin to send/receive activities using botbuilder instead of the default Teams SDK http plugin.
import { App } from '@microsoft/teams.apps';
import { BotBuilderPlugin } from '@microsoft/teams.botbuilder';
import adapter from './adapter';
import handler from './activity-handler';
const app = new App({
// highlight-next-line
plugins: [new BotBuilderPlugin({ adapter, handler })],
});
app.on('message', async ({ send }) => {
await send('hi from teams...');
});
(async () => {
await app.start();
})();
hi from botbuilder...
hi from teams...