Skip to content

Commit 75d6a27

Browse files
committed
tsconfig
1 parent 13e64be commit 75d6a27

3 files changed

Lines changed: 15 additions & 187 deletions

File tree

index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ const PORT = process.env.PORT || 3000;
1111
registerCommands();
1212

1313
app.post('/', (req, res) => {
14-
bot.processUpdate(req.body);
15-
res.status(200).send('OK');
14+
console.log("Received update:", req.body);
15+
try{
16+
bot.processUpdate(req.body);
17+
res.status(200).send('OK');
18+
} catch (error) {
19+
console.error("Error processing update:", error);
20+
res.status(500).send('Error');
21+
}
1622
});
1723

1824
app.get('/', (_req, res) => {

package-lock.json

Lines changed: 6 additions & 185 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"license": "ISC",
1515
"dependencies": {
1616
"axios": "^1.8.4",
17+
"bubble-telegram": "file:",
1718
"dotenv": "^16.5.0",
1819
"express": "^5.1.0",
1920
"node-telegram-bot-api": "^0.66.0",

0 commit comments

Comments
 (0)