randydev commited on
Commit
d20839b
·
verified ·
1 Parent(s): dfd8df5

Delete bot

Browse files
Files changed (1) hide show
  1. bot/telegrambot.js +0 -19
bot/telegrambot.js DELETED
@@ -1,19 +0,0 @@
1
- import { Bot } from 'grammy';
2
- import { BotToken } from "../config.js";
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);
16
- }
17
- }
18
-
19
- export { InitBot };