Attributes
Includes Deno configuration
Repository
Current version released
3 years ago
Dependencies
deno.land/x
Versions
import Handler from "https://deno.land/x/grammy_handler/mod.ts"
import { Context } from "https://deno.land/x/grammy/mod.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.privateChat.cmd("admin", (ctx) => ctx.reply("admin"))
handler.cmd("test", (ctx) => ctx.reply("test"))
export { handler }