File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
import "dotenv/config" ;
2
- // import { telegramBot } from "./utils/telegram";
3
- // import { initRoutes } from "./routes";
4
- // import { webhookCallback } from "grammy";
2
+ import { telegramBot } from "./utils/telegram" ;
3
+ import { initRoutes } from "./routes" ;
4
+ import { webhookCallback } from "grammy" ;
5
5
6
- // initRoutes()
6
+ initRoutes ( )
7
7
8
- // console.log('server started')
8
+ console . log ( 'server started' )
9
9
10
- // export default webhookCallback(telegramBot,"http")
10
+ export default webhookCallback ( telegramBot , "http" )
11
11
12
12
13
13
14
14
15
- import { Bot , webhookCallback } from "grammy" ;
15
+ // import { Bot, webhookCallback } from "grammy";
16
16
17
- const token = process . env . TELEGRAM_BOT_TOKEN ;
18
- if ( ! token ) throw new Error ( "BOT_TOKEN is unset" ) ;
17
+ // const token = process.env.TELEGRAM_BOT_TOKEN;
18
+ // if (!token) throw new Error("BOT_TOKEN is unset");
19
19
20
- const bot = new Bot ( token ) ;
20
+ // const bot = new Bot(token);
21
21
22
- bot . on ( "message" , ( ctx ) => {
23
- ctx . reply ( 'helllo' )
24
- } )
22
+ // bot.on("message",(ctx)=>{
23
+ // ctx.reply('helllo')
24
+ // })
25
25
26
- export default webhookCallback ( bot , "http" ) ;
26
+ // export default webhookCallback(bot, "http");
You can’t perform that action at this time.
0 commit comments