Skip to main content
Module

x/mtkruto/client/1_composer.ts>Composer#command

Cross-runtime JavaScript library for building Telegram clients
Latest
method Composer.prototype.command
import { Composer } from "https://deno.land/x/mtkruto@0.2.30/client/1_composer.ts";

Parameters

commands:
| string
| RegExp
| (string | RegExp)[]
| { names: string | RegExp | (string | RegExp)[]; prefixes: string | string[]; }
...middleware: Middleware<WithFilter<C, "message:text">>[]

Returns

Composer<WithFilter<C, "message:text">>