aikaramba / telegram-exec-bot

Telegram bot that listens to messages and executes them as bash commands.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram execute bot

About

Bot listens to messages and executes them as bash commands.

Only admin user messages are executed.

Output stream chunks are sent back as replies.

I've created this bot to make it easy to control my remote RaspberryPi's without configuring a dedicated SSH server.

Installing

  1. Add you user id and telegram bot API key to config/[environment].js files:
{
    "BOT_TOKEN": "YOUR_TELEGRAM_BOT_TOKEN_HERE",
    "ADMIN_ID": "YOUR_TELEGRAM_ADMIN_USER_ID_HERE"
}
  1. Start the bot
npm run prod
# or
npm run dev

Acquiring a bot token

Talk to BotFather if you need to register a new bot.

About

Telegram bot that listens to messages and executes them as bash commands.


Languages

Language:JavaScript 100.0%