Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.118/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>>[]