Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/composer.ts>MiddlewareFn

The Telegram Bot Framework.
Very Popular
Latest
type alias MiddlewareFn
import { type MiddlewareFn } from "https://deno.land/x/grammy@v1.32.0/composer.ts";

Middleware in the form of a function.

Type Parameters

optional
C extends Context = Context
definition: (ctx: C, next: NextFunction) => MaybePromise<unknown>