Initial commit
This commit is contained in:
11
src/handlers/welcome.ts
Normal file
11
src/handlers/welcome.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { Context } from "#root/context.js";
|
||||
import { Composer } from "grammy";
|
||||
|
||||
const composer = new Composer<Context>();
|
||||
const feature = composer.chatType("private");
|
||||
|
||||
feature.command("start", (ctx) => {
|
||||
return ctx.reply("Welcome user!");
|
||||
});
|
||||
|
||||
export { composer as welcomeFeature };
|
Reference in New Issue
Block a user