Attributes
Includes Deno configuration
Repository
Current version released
3 years ago
Dependencies
deno.land/x
Versions
import { Handler } from "../mod.ts"
import { Context } from "../src/deps.ts"
type Command = "test" | "admin"
const handler = new Handler<Context, Command>()
handler.groups.start((ctx) => ctx.reply("group"))
handler.start((ctx) => ctx.reply("start"))
handler.private.command("admin", (ctx) => ctx.reply("admin"))
handler.command("test", (ctx) => ctx.reply("test"))
export { handler }