Can't reach app by hostname so the webhook doesn't work (telegram bot)

Solution that worked so far:

app.use(express.json());
app.use(await bot.createWebhook({ domain: process.env.WEBHOOK_URL }));
app.listen(process.env.WEBHOOK_PORT, '0.0.0.0', () => console.log("Listening on port", process.env.WEBHOOK_PORT)); // PORT 8443 works fine.
1 Like