File size: 281 Bytes
9926b6a
7811b06
430796e
7811b06
430796e
 
0dd7c34
 
 
430796e
0dd7c34
430796e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Bot } from 'grammy';
import { BotToken } from "../config.js";

const bot = new Bot(BotToken);

function InitBot() {
  bot.command("start", (ctx) => {
    ctx.reply("Welcome to the bot! 🚀");
  });
  bot.start();
  console.log("Bot is running...");
}

export { InitBot };