import * as grammyRouter from "https://deno.land/x/grammy_router@v2.0.0/router.ts"; ClassescRouterA router lets you specify a number of middlewares, each of them identified by a string key. You can then pass a routing function that decides based on the context which middleware to choose by returning one of the keys.