randydev commited on
Commit
430796e
·
verified ·
1 Parent(s): f7599b6

Create bot/telegrambot.js

Browse files
Files changed (1) hide show
  1. bot/telegrambot.js +12 -0
bot/telegrambot.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const { Bot } = from "grammy";
2
+
3
+ const bot = new Bot("");
4
+
5
+ bot.on("/start", (ctx) => ctx.reply("Hi there!"));
6
+
7
+ function InitBot() {
8
+ bot.start();
9
+ console.log("Starting Bot")
10
+ }
11
+
12
+ export { InitBot };