Module telegram-bot-lua.middleware

middleware system for intercepting and processing updates.

Functions

api._run_middleware(update) execute the middleware chain then dispatch to handlers.
api.use(fn) register a global middleware function.


Functions

api._run_middleware(update)
execute the middleware chain then dispatch to handlers.

Parameters:

  • update table the raw update object
api.use(fn)
register a global middleware function.

Parameters:

  • fn function middleware receiving (ctx, next) arguments
generated by LDoc 1.5.0 Last updated 2026-04-07 21:37:15