A Telegram bot that monitors your websites and servers. Get notified when a site goes down and receive daily status reports.
- Monitor multiple websites
- Automatic checks every 5 minutes
- Instant alerts when a site goes down or comes back up
- Daily status reports at your preferred time
- Response time tracking
- NestJS
- Telegraf (Telegram Bot API)
- TypeORM + SQLite
- Node.js 18+
- Open Telegram and search for @BotFather
- Send
/newbotcommand - Follow the instructions to create your bot
- Copy the token
Create a .env file in the project root:
BOT_TOKEN=your_telegram_bot_token_here
npm installDevelopment:
npm run start:devProduction:
npm run build
npm start| Command | Description |
|---|---|
/start |
Start the bot |
/add <url> |
Add a site to monitor |
/remove <id> |
Remove a site |
/list |
List all monitored sites |
/status |
Show current status of all sites |
/check |
Check all sites now |
/settime <HH:MM> |
Set daily report time |
/help |
Show help |
/add google.com
/add my-server.com
/settime 09:00
/status
- Push your code to GitHub
- Go to railway.app
- Create a new project from GitHub repo
- Add environment variable:
BOT_TOKEN - Deploy
Live demo: https://web-production-ca996.up.railway.app
src/
app.module.ts # Main module
main.ts # Entry point
bot/ # Telegram bot handlers
monitor/ # Site checking logic
sites/ # Site entity and service
users/ # User entity and service
MIT