10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
import { Composer, Context } from "grammy";
|
|
|
|
const composer = new Composer<Context>();
|
|
const feature = composer.chatType('private');
|
|
|
|
feature.command(['help', 'start'], async (ctx) => {
|
|
ctx.reply('Add this bot to chat and type /remove command');
|
|
});
|
|
|
|
export { composer as welcomeFeature }; |