Register a handler for an activity type. Delegates to BotApplication.on.
Register a handler for an invoke activity by its activity.name sub-type.
Delegates to BotApplication.onInvoke.
Register a middleware in the turn pipeline. Delegates to BotApplication.use.
Proactively send an activity to a conversation. Delegates to BotApplication.sendActivityAsync.
Start the Express server.
Creates routes for the bot messages endpoint, a health check, and a root status page, then begins listening.
The underlying http.Server — call .close() to shut down.
Zero-boilerplate bot host that composes a BotApplication with an Express server.
Example