/PC-Control-telegram-bot

Control your PC directly from Telegram!

Primary LanguagePythonMIT LicenseMIT

logo

PC Control bot

Through this bot you can execute actions on your PC directly from Telegram!

This bot is available in English and Italian.

Use this channel to get notified when there's a new commit

Getting Started

Prerequisites

GNU/Linux users: you need to install the python-tk package

Setup the bot

Launch the setup with python bot_setup.py

Select your language from the options menu and add your tokens.

Install requirements.

Now start it!

setup

Set the permissions

The first user registered into the database will have admin permissions by default.
Click the "Change user permissions" button to add or remove someone from the allowed users.
Just insert the wanted Telegram username (write it without @) and select if you want to add the permissions or remove them

Example:

privs

Available commands

Command Description Note
/shutdown Shutdown your PC
/reboot Reboot your PC
/logout Log out from your current account Currently not working on Linux
/hibernate Hibernate your PC
/lock Lock your PC Currently not working on Linux
/cancel Annul the previous command It work with the first two commands_t
/check Check the PC status
/launch Launch a program Example: /launch notepad
/link Open a web link Example: /link http://google.com (don't use "www")
/memo Show a memo on your pc
/task Check if a process is currently running or kill it Example: /task chrome
/screen Take a screenshot and receive it through Imgur
/menu Shows the inline menu
/kb or /keyboard Brings the normal keyboard up

You can set a delay time for the execution of the first four commands by using _t + time in seconds after a command.
Example: /shutdown_t 20

Contributors

Thanks to Jasoc for the awesome logo!