Skip to main content
Module

x/grammy_parse_mode/deps.deno.ts>NextFunction

Safely format messages and keep their source code maintainable.
Latest
type alias NextFunction
Re-export
import { type NextFunction } from "https://deno.land/x/grammy_parse_mode@1.9.0/deps.deno.ts";

A function of this type is passed as the second parameter to all middleware. Invoke it to call the downstream middleware and pass on the control flow.

In other words, if your middleware is done handling the context object, and other middleware should take over, this function should be called and awaited.

Once the Promise returned by this function resolves, the downstream middleware is done executing, hence returning the control.

definition: () => Promise<void>