Module

x/grammy/composer.ts

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

Middleware in the form of a function.

Type Parameters

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