v2.0 (#PC-bot)
Pre-release
Pre-release
PC Control Telegram Bot [PC-bot]
A simple Telegram bot to control your Windows PC remotely through Telegram commands.
telegram-bot-PC-update.mp4
⚠️ IMPORTANT WARNINGS
Access Permission Warning
- Bot requires Administrator privileges to execute system commands
- Do NOT place scripts in system directories (like C:\Windows, C:\Program Files)
- Do NOT run scripts from directories requiring special permissions
- Recommended: Place scripts in user directories (e.g., D:\script)
Disclaimer
- This bot is provided "AS IS" without any warranties
- Users are responsible for their use of the bot
- The author is not liable for any damages that may occur
- Users should understand the commands before using them
- Do NOT use the bot on critical computers or those containing sensitive data
Misuse Warning
- This bot is developed for educational and personal use only
- DO NOT use the bot to:
- Control other people's computers without permission
- Perform destructive or harmful actions
- Violate laws or privacy rights of others
- The author is not responsible for any misuse by users
- Users must comply with laws and ethics when using the bot
- Misuse of the bot may lead to legal consequences
Features
- 🔐 Security: Bot runs only on your computer
- 🚀 Remote Control: Shutdown, restart, or put your PC to sleep
- 👤 Personalization: Store and display user names in notifications
- ⏱️ Real-time Notifications: Show notifications before and after command execution
- 📝 Logging: Automatically log all activities to a log file
Commands
/start- Start the bot and show command menu/sdor/shutdown- Shutdown the computer/rsor/restart- Restart the computer/slor/sleep- Put the computer to sleep
Installation
- Install Python 3.7 or higher
- Install required libraries:
pip install python-telegram-bot
- Create a Telegram bot via @BotFather and get the token
- Update
BOT_TOKENinPC-bot.py - IMPORTANT: Place scripts in a directory that doesn't require special permissions
Running the Bot
Direct Run
python PC-bot.pyRun as Windows Service
-
Run
create_service.batas Administrator -
Service will start automatically with Windows
Service Configuration
- Service Name:
PCBotService2 - Display Name:
PC Control Bot Service 2 - Description:
Telegram bot service for controlling PC - Auto-start with Windows
Service Management
Install Service
create_service.batUninstall Service
uninstall_service.batNew Features
Real-time Notifications
- Bot shows notifications before executing commands
- 3-second delay before execution for user cancellation
- Confirmation notification after command execution
Personalization
- Store user names from Telegram
- Display user names in all notifications
- User-friendly error messages
Logging
- Automatically log all activities to
bot.log - Include user info, commands, and execution results
- Support debugging and activity tracking
Security
- Bot runs only on your computer
- No sensitive information stored
- All commands require confirmation before execution
- DO NOT place scripts in system directories
- DO NOT share bot token with others
Notes
- Run bot with Administrator privileges to execute system commands
- Check log file if errors occur
- Do not share bot token with others
- IMPORTANT: Read all warnings and disclaimers before use
Full Changelog: v1.1...v2.0
