📦 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 toon-failure
with aRestartSec=60
wait time.
- Added
-
Improved Python bot script
- Replaced
asyncio.run()
with nativeapplication.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.
- Replaced
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.