diff --git a/telegram_helper.py b/telegram_helper.py index 99f4d7e..61d523c 100644 --- a/telegram_helper.py +++ b/telegram_helper.py @@ -80,6 +80,11 @@ class TelegramHelper: sys.exit(0) def run(self): + if os.path.exists("./.doreboot"): + # Assuming `send_message_to_user` is a method or function available in the bot context. + await self.bot.send_message_to_user("Reboot Complete") + os.remove("./.doreboot") + application = Application.builder().token(self.telegram_bot_token).build() application.add_handler(CommandHandler("start", self.start)) @@ -92,4 +97,3 @@ class TelegramHelper: logging.info("Bot is running...") application.run_polling() - \ No newline at end of file