import { Composer } from "https://deno.land/x/mtkruto@0.1.130/client/4_composer.ts";
Constructors
new
Composer(...middleware: Middleware<C>[])Methods
branch()
predicate: (ctx: C) => MaybePromise<boolean>,
trueHandler_: Middleware<C>,
falseHandler_: Middleware<C>,
command(commands: , ...middleawre: Middleware<FilterUpdate<C, "message", "text">>[])
| string
| RegExp
| (string | RegExp)[]
| { names: string | RegExp | (string | RegExp)[]; prefixes: string | string[]; }
filter<D extends C>(predicate: (ctx: C) => ctx is D, ...middleware: Middleware<D>[]): Composer<D>
on<T extends keyof Update_, F extends string>(filter: T extends FilterableUpdates ? T | [T, F, ...F[]] : T, ...middleawre: Middleware<FilterUpdate<C, T, F>>[])
use(...middleware: Middleware<C>[])