Telegram Bot Boilerplate based on Node.js and Telegraf framework.
First rename .env-sample
file to .env
and fill in all necessary values.
BOT_TOKEN="<YOUR_BOT_API_TOKEN>"
USERNAME="<YOUR_BOT_USERNAME>"
WEBHOOK_URL="<THE_URL_OF_YOUR_WEBHOOK>"
PORT="<PORT>"
For deployment just create .env.prod
with your production values.
yarn install
yarn dev
Pull Requests are welcomed :)