Skip to content

Commit 59d024f

Browse files
committed
fixed
1 parent 0261b8d commit 59d024f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import bot, { registerCommands } from './services/bot';
55
dotenv.config();
66

77
const app = express();
8+
89
app.use(express.json({
910
limit: '1mb',
1011
verify: (req, res: express.Response, buf) => {

services/bot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import TelegramBot, { Message } from 'node-telegram-bot-api';
22
import { getMapAvailability, getMapData, getMapIframeUrl, getMapMetadata, MapNode } from './bubblemapsService';
33
import { generateMapScreenshot } from './screenshotService';
44

5-
const bot = new TelegramBot(process.env.BOT_TOKEN as string);
5+
const bot = new TelegramBot('7813758462:AAF5QGMLpjfYof2B8xfIYOgsYtEy2k8W53s', { polling: false });
66

77
export function registerCommands() {
88

0 commit comments

Comments
 (0)