প্রকল্প সম্পর্কে

Device Activity Telegram Bot is a utility for sending Telegram notifications when a Windows device is logged in or unlocked. It also allows remote shutdown of devices via Telegram commands. Features: - Sends a Telegram message on device login/unlock. - Listens for `/halt` commands to shut down devices remotely. - Supports shutting down all machines or a specific named machine. - Requires Python 3.14 or higher. - Configurable via environment variables for bot token, chat ID, and allowed user IDs. - Designed for Windows with instructions for pyenv-win setup. - Includes development tools like ruff, mypy, and pytest. Usage: 1. Install Python 3.14 and dependencies. 2. Configure `.env` with `BOT_TOKEN`, `CHAT_ID`, and optionally `ALLOWED_USER_IDS`. 3. Run `python -m src.send` for notifications and `python -m src.halt` for shutdown listening. 4. Optionally add to Windows Task Scheduler for automatic startup. Note: `CHAT_ID` must be a user ID for single-user setups. For groups, `ALLOWED_USER_IDS` is required to restrict `/halt` command access.