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

Update bot/telegrambot.js

Browse files
Files changed (1) hide show
  1. bot/telegrambot.js +4 -4
bot/telegrambot.js CHANGED
@@ -3,13 +3,13 @@ import { BotToken } from "../config.js";
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) {
15
  console.error("Error", e.message);
 
3
 
4
  const bot = new Bot(BotToken);
5
 
6
+ bot.command("start", async (ctx) => {
7
+ await ctx.reply("Welcome to the bot! 🚀");
8
  });
9
 
10
+ const InitBot = async () {
11
  try {
12
+ await bot.start();
13
  console.log("Bot is running...");
14
  } catch (e) {
15
  console.error("Error", e.message);