server.post(routePath, (req, res) => { this.adapter.processActivity(req, res, async (context) => { if (context.activity.type === ActivityTypes.Message) { try { const input = {
async interrupt(innerDc) { if (innerDc.context.activity.type === ActivityTypes.Message) { const text = innerDc.context.activity.text.toLowerCase(); if (text === 'logout') { // The bot adapter encapsulates the authentication processes. const botAdapter = innerDc.context.adapter; await botAdapter.signOutUser(innerDc.context, this.connectionName); await innerDc.context.sendActivity('You have been signed out.'); return await innerDc.cancelAllDialogs(); } } }
if (turnContext.activity.type === ActivityTypes.Message) {