import { Bot } from 'grammy'; import { BotToken } from "../config.js"; const bot = new Bot(BotToken); bot.command("start", (ctx) => { ctx.reply("Welcome to the bot! 🚀"); }); const InitBot = function () { try { bot.start(); console.log("Bot is running..."); } catch (e) { console.error("Error", e.message); } } export { InitBot };