Skip to content

Commit 2fa57dd

Browse files
committed
ci: dry run
1 parent 87af0a3 commit 2fa57dd

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

server/api/bot.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
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";
55

6-
// initRoutes()
6+
initRoutes()
77

8-
// console.log('server started')
8+
console.log('server started')
99

10-
// export default webhookCallback(telegramBot,"http")
10+
export default webhookCallback(telegramBot,"http")
1111

1212

1313

1414

15-
import { Bot, webhookCallback } from "grammy";
15+
// import { Bot, webhookCallback } from "grammy";
1616

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");
1919

20-
const bot = new Bot(token);
20+
// const bot = new Bot(token);
2121

22-
bot.on("message",(ctx)=>{
23-
ctx.reply('helllo')
24-
})
22+
// bot.on("message",(ctx)=>{
23+
// ctx.reply('helllo')
24+
// })
2525

26-
export default webhookCallback(bot, "http");
26+
// export default webhookCallback(bot, "http");

0 commit comments

Comments
 (0)