Skip to main content
Module

x/mtkruto/mod.ts>Client#on

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

Type Parameters

T extends keyof Update
F extends string

Parameters

filter: T extends FilterableUpdates ? T | [T, F, ...F[]] : T
...middleawre: Middleware<FilterUpdate<C, T, F>>[]