What problem does it solve?
It solves the problem of implementing robust Microsoft Teams bot event handling for messages, card submits, reactions, and member/conversation lifecycle events without breaking downstream middleware.
Core Features & Use Cases
- Bot Framework activity lifecycle hooks: Add targeted handlers for message, member, reaction, delete/update, conversation update, and token response events.
- Adaptive Card submit routing: Correctly process card submissions delivered as message activities by checking msteams.type inside context.activity.value.
- Safe middleware chaining: Ensures every registered handler awaits next() to avoid swallowing subsequent middleware, and supports updating cards using injected activityId.
Quick Start
Add the requested handler(s) into server/bot/botActivityHandler.js inside BotActivityHandler’s constructor, ensuring each callback ends with await next() and that any Adaptive Card Action.Submit includes data.msteams.type matching the handler branch.