Files
me-tg-bot/index.ts
2026-01-02 23:28:17 +03:00

12 lines
264 B
TypeScript

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();