A simple Telegram Bot to run shell commands remotely, so that you can maintain your server from mobile phones!
Download or clone this repo, then
npm install
Follow Telegram instructions to create a bot
Then put your telegram user ID and bot token in config.js
:
module.exports = {
config:function(){
return (
{
adminUsers:[ADMIN_ID], //admin users' telegram id, should be numbers
botToken: 'YOUR_BOT_TOEKN', // bot token
}
);
}
};
npm start
or
node index.js
That is it!