botas-express
    Preparing search index...

    Type Alias TurnMiddleware

    TurnMiddleware: (context: TurnContext, next: NextTurn) => Promise<void>

    A middleware function that participates in the turn processing pipeline.

    Add cross-cutting logic (e.g. logging, telemetry) that runs before or after each activity is handled. Call next() to continue to the next middleware or handler.

    Type Declaration

    const logging: TurnMiddleware = async (context, next) => {
    console.log('activity type:', context.activity.type)
    await next()
    }

    bot.use(logging)