- Telegram messenger CLI (https://github.com/vysheng/tg)
Create or edit startbot.sh, make sure to include
telegram-cli -k /path/to/api/key
Run the bot
node app.js
Edit config.js, and add a new command file to the commands folder. All commands should have the following structure:
var command = {
process: function(command, telegramProcess) {
// handle command here
};
module.exports = command;