Skip to content

It's a way to execute commands on a pc running the bot through the comfort of Telegram.

License

Notifications You must be signed in to change notification settings

nathenapse/telegram-pc-commander

Repository files navigation

telegram-pc-commander

Run terminal commands on your pc using telegram

DESCRIPTION

telegram-pc-commander is a telegram bot that let's you run commands through telegram. There are default commands that will help you run simple commands like Download a file, Download Youtube videos, Run simple commands and more to come.

REQUIREMENTS

  • Node version > 7.10.1
  • youtube-dl to download youtube videos
  • One of terminal file downloaders wget, curl, axel

INSTALLATION

  • To install it first clone the project on your pc
git clone https://github.com/nathenapse/telegram-pc-commander.git
  • Install package dependency
cd telegram-pc-commander
npm install
  • Create a telegram bot using @BotFather
    • Set the name of the bot
    • Set the username of the bot
    • Set the commands of the bot using /setcommands and select your bot
    • Then paste the below content
file - Download a file
torrent - Downalod a torrent file (TODO)
upload - Get a file from the pc
youtube - Download a youtube video
showpwd - For Sequential commands (TODO)
setdownloader - Set File Downloader
getdownloader - Get current File Downloader
setquality - set Youtube Download Quality
getquality - get current Youtube Download Quality
  • Get your telegram user id using @IDBot
  • Copy .env.example to .env
cp .env.example .env
  • Set your bot and telegram user id on .env
TELEGRAM_TOKEN=<TELEGRAM_TOKEN>
TELEGRAM_USER_ID=<TELEGRAM_USER_ID>
  • Install PM2 globally
sudo npm install -g pm2
  • Start app using pm2
pm2 start ecosystem.config.js
  • To start the bot at reboot
pm2 startup

Copy and paste the commands pm2 tells you, then while the app is still running

pm2 save

TODO

  • Torrent Downloads
  • Continous command
  • Better Documentation

LICENSE

MIT

About

It's a way to execute commands on a pc running the bot through the comfort of Telegram.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published