Skip to content

v2.0 (#PC-bot)

Pre-release
Pre-release

Choose a tag to compare

@ImThienz ImThienz released this 01 May 05:34
70416f2

PC Control Telegram Bot [PC-bot]

A simple Telegram bot to control your Windows PC remotely through Telegram commands.

  • This release just talk about this path:
    Screenshot 2025-05-01 120829
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
  • /sd or /shutdown - Shutdown the computer
  • /rs or /restart - Restart the computer
  • /sl or /sleep - Put the computer to sleep

Installation

  1. Install Python 3.7 or higher
  2. Install required libraries:
    pip install python-telegram-bot
  3. Create a Telegram bot via @BotFather and get the token
  4. Update BOT_TOKEN in PC-bot.py
  5. IMPORTANT: Place scripts in a directory that doesn't require special permissions

Running the Bot

Direct Run

python PC-bot.py

Run as Windows Service

  1. Run create_service.bat as Administrator

  2. 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.bat

Uninstall Service

uninstall_service.bat

New 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