Update bot/telegrambot.js
Browse files- bot/telegrambot.js +5 -4
bot/telegrambot.js
CHANGED
@@ -3,11 +3,12 @@ import { BotToken } from "../config.js";
|
|
3 |
|
4 |
const bot = new Bot(BotToken);
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
7 |
try {
|
8 |
-
bot.command("start", (ctx) => {
|
9 |
-
ctx.reply("Welcome to the bot! 🚀");
|
10 |
-
});
|
11 |
bot.start();
|
12 |
console.log("Bot is running...");
|
13 |
} catch (e) {
|
|
|
3 |
|
4 |
const bot = new Bot(BotToken);
|
5 |
|
6 |
+
bot.command("start", (ctx) => {
|
7 |
+
ctx.reply("Welcome to the bot! 🚀");
|
8 |
+
});
|
9 |
+
|
10 |
+
const InitBot = function () {
|
11 |
try {
|
|
|
|
|
|
|
12 |
bot.start();
|
13 |
console.log("Bot is running...");
|
14 |
} catch (e) {
|