method Bot.prototype.onimport { Bot } from "https://deno.land/x/grammy@v1.30.1/bot.ts"; on<Q extends FilterQuery>(filter: Q | Q[], ...middleware: Array<Middleware<Filter<C, Q>>>): Composer<Filter<C, Q>>Type ParametersQ extends FilterQueryParametersfilter: Q | Q[]...middleware: Array<Middleware<Filter<C, Q>>>ReturnsComposer<Filter<C, Q>>