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

x/mtkruto/mod.ts>Client#command

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
method Client.prototype.command
import { Client } from "https://deno.land/x/mtkruto@0.1.157/mod.ts";

Parameters

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

Returns

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