type Middleware

A middleware

This is a function that can be used to add middleware to the bot. See the middleware documentation.

(callback: MiddlewareCallback<TContext> | (IMiddlewareOptions<TContext> & TOptions)) => void