Skip to content

Releases: nexesninja/raspberrypi-telegram-bot

Version 1.0.1

15 May 06:52
f003220
Compare
Choose a tag to compare

📦 Release v1.0.1 – Improved Boot Stability & Bot Resilience

This release introduces key fixes and improvements to ensure the Raspberry Pi Telegram bot starts reliably after a reboot and handles early network issues gracefully.


Improvements

  • Enhanced systemd service file

    • Added network-online.target to ensure the bot starts only after the network is ready.
    • Introduced ExecStartPre=/bin/sleep 30 to provide additional boot delay for stability.
    • Updated Restart policy to on-failure with a RestartSec=60 wait time.
  • Improved Python bot script

    • Replaced asyncio.run() with native application.run_polling() to fix event loop issues.
    • Added retry mechanism using time.sleep() for better resilience on slow network startup.
    • Enhanced logging for easier debugging and monitoring.

Fixes

  • Fixed Cannot close a running event loop crash during boot.
  • The bot now consistently initializes on Raspberry Pi startup.

Updated Files

  • temp.service (Systemd service file)
  • temp.py (Main Telegram bot script)

Note: There's an initial delay of 1 minute until the bot starts after booting rpi.

💬 Let us know if you face any issues or suggestions by opening an issue on GitHub.

Version 1.0

06 May 08:50
723b407
Compare
Choose a tag to compare

📦 Release v1.0.0 – Initial Stable Release

First official release of the Raspberry Pi 5 Telegram Bot!

Features:

  • 🌡️ Temperature Monitoring
  • 📊 System Monitoring (coming soon)
  • 💻 Remote Command Execution (planned)
  • 🔒 SSH-based Setup

Setup Instructions:

  • README.md for full setup
  • docs/Prerequisites.md
  • docs/TemperatureMonitoring.md

Roadmap:

  • Temperature monitoring
  • CPU & memory usage display
  • Custom shell command execution
  • Error logging and bot resilience

How to Use:

  • /temp → View system temperature
  • /help → Get help message

Known Issues:

  • Manual token editing required in and systemd service file
  • No error handling yet for failed commands or bot disconnections