Skip to content

Version 1.0.1

Latest
Compare
Choose a tag to compare
@nexesninja nexesninja released this 15 May 06:52
· 1 commit to main since this release
f003220

📦 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.