Simple Starter Telegram Bot built in JavaScript (Node.js) using Yarn Package Manager and Telegraf Library
To deploy the Telegram Bot. First to get your Bot Token at BotFather. Then, insert the token at the index.js file.
Upload all necessary files into your Hosting. Then Install all the dependencies as shown in the package.json
files.
You can use npm for package manager, but I recommend you to use yarn, as it was faster (In my Opinion)
yarn install
The next one will be executing the main index file
node index.js
And you're done. Enjoy your own telegram bot!