This commit is contained in:
2026-01-02 23:28:17 +03:00
commit 2d9b696ef5
12 changed files with 195 additions and 0 deletions

11
index.ts Normal file
View File

@@ -0,0 +1,11 @@
import { Bot } from 'grammy';
import { cmdStart, cmdHelp } from './src/commands';
const bot = new Bot(process.env.TOKEN);
bot.command('start', cmdStart);
bot.command('help', cmdHelp);
bot.on('message', (ctx) => ctx.reply('Got another message!'));
bot.start();