Basic boilerplate to create a Telegram Bot using Node.js + TypeScript
You need to create a bot with @botfather, then you'll get a TOKEN.
Create a file named .env
in the root of this project, then add this line:
TELEGRAM_TOKEN=XXXXXXXXXXXXX
Install dependencies:
$ yarn
Running the bot:
$ yarn start
Just build:
$ yarn build
You are welcome! Feel free to fork and to make a pull request against this repository.
But remember, this is not a complex project, it's a starter template.