/express-telegrambot

Telegram bot using Express JS

Primary LanguageJavaScript

Telegram Bot using Express Framework

This is just an expamle how to use Expressjs for telegram bot

Prepare

npm install

Make env variable:

echo "TELEGRAM_BOT_TOKEN=<YOUR TELEGRAM TOKEN HERE>" >> .env

Note: Replace <YOUR TELEGRAM TOKEN HERE> with your own token

Run

npm run start

Set your webhook into your URL

Check the Telegram documentation