Skip to content

A Python bot that automatically monitors your render web projects, updates a Telegram channel with their status, and triggers redeploys via hook if any project goes down. Fully asynchronous, scheduler-based, and designed for hands-free uptime monitoring.

Notifications You must be signed in to change notification settings

lx-0980/render-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛰️ Render apps Auto Monitor Bot

A fully automated Render project monitor bot built using Pyrogram and APScheduler.
It periodically checks the status of multiple deployed web apps on Render. auto-redeploys any app that goes down, and posts live status updates in a Telegram channel message.


⚠️ Note

Don't forget to start bot in PM

⚙️ Features

  • 🔄 Automatic Status Check — runs every X minutes (configurable)
  • 🧠 Auto Redeploy if Down — calls your Render deploy hook when a project is offline
  • 📢 Channel Update — keeps one pinned message in your status channel always up-to-date
  • 🧹 No Private Chat Commands — runs silently, no PM commands or buttons
  • Lightweight & Async — uses httpx and asyncio for fast non-blocking requests

API_ID=1234567
API_HASH=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
BOT_TOKEN=1234567890:XXXXXXXXXXXXXXXXXXXXXXX
OWNER_ID=5326801541

# Channel where status message will be updated
STATUS_CHANNEL_ID=-1001234567890
STATUS_MESSAGE_ID=22

📝 Tip: The STATUS_MESSAGE_ID should be the message ID of a message already sent in your status channel (the bot must be admin there).

🌐 Define Your Projects

Edit projects.py and add your Render apps in the following format:

PROJECTS = {
    "MyApp1": {
        "app_url": "https://myapp1.onrender.com",
        "deploy_url": "https://api.render.com/deploy/somehook1"
    },
    "MyApp2": {
        "app_url": "https://myapp2.onrender.com",
        "deploy_url": "https://api.render.com/deploy/somehook2"
    },
}

About

A Python bot that automatically monitors your render web projects, updates a Telegram channel with their status, and triggers redeploys via hook if any project goes down. Fully asynchronous, scheduler-based, and designed for hands-free uptime monitoring.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published