{"repo":"thetorminal/telegram-servermanager","free":true,"listed":false,"github":"https://github.com/thetorminal/telegram-servermanager","clone":"git clone https://github.com/thetorminal/telegram-servermanager.git","description":"Run commands on a linux server with a telegram bot","language":"Python","stars":20,"topics":["server-management","telegram","telegram-bot","telegram-bot-api"],"license":null,"category":"chat-messaging","readme_excerpt":":speech balloon: telegram-servermanager Run shell commands on a linux host from a telegram bot. Blog post on torminal.com: telegram-servermanager. Description This project gives you the possibility to run shell commands on a linux host from a telegram bot. Functions: /run : run shell commands /status : check status of a service /wake : wake up clients in your network with WakeOnLan Choose between whitelist or blacklist for the commands you want to run. You can add commands to the list in the setup. Logging: check the bot activity.log to see, if someone is trying something evil. Use this bot carefully! Dont expose dangerous commands to it. Examples /run: /wake (WakeOnLan): whitelist: Logging: Tested with: Debian 12 Server Python3: python-telegram-bot==21.10, cryptography==44.0.1 Telegram Getting Started Dependencies Linux server with root shell access Python3 installed on the server Telegram bot Installing Telegram: Get a Telegram bot token: You need a telegram bot. To do this, send the command /newbot to BotFather. Safely secure your token. Add the used commands to your bot with /setcommands : Get your Telegram user id: Send the message /start to userinfobot to get your user id. Safely secure your user id. On your linux server: Security notice: Create a new user with low privileges to run the bot (Example: \"tgbot\"). You can run it as root, but i highly recommend to use a low privilege user! Install dependencies: Clone the repository, create directory for log and change permis","default_branch":null,"files":null,"tree":[],"storefront":"/r/thetorminal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thetorminal/telegram-servermanager/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}