randydev commited on
Commit
db01d45
·
verified ·
1 Parent(s): c217be4

Update bot/telegrambot.js

Browse files
Files changed (1) hide show
  1. 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
- function InitBot() {
 
 
 
 
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) {