Telegram bot for monitoring home server services. Currently supports SSH connection monitoring with real-time alerts.
- Python 3.12+
- Linux system
- Dependencies: see
requirements.txt
- Create a bot via @BotFather in Telegram.
- When filling in the config.conf file, create and leave the chat_id field empty.
- Launch the bot and get your chat ID by sending
/startto the bot.
Configuration file - config.conf
When filling in the config.conf file, you can use both environment variables inside linux and from the .env file.
If you do not want to use environment variables, then enter the parameter values instead.
bot_token ESCORT_TELEGRAM_BOT_TOKEN # Via service variables
bot_token 123456789:AAAbbbCccDddEeeFffGggHhh # Entering values directlyLaunch file TelegramBot_for_HomeServer.py
- Output to the console + write to a file
- Default log file:
escort.login the program directory - The logging level is configured in config.conf
debug_level
MIT License - see LICENSE file