1- run npm install
command
2- set environment variables
PORT= 80 INSTANCES= 1 URL= ( your server url like https://test.com ) TELEGRAM_BOT_TOKEN= ( your bot token ) MONGODB_ADDRESS= mongodb://127.0.0.1:27017/telebot
3- setwebhook to telegram server :
https://api.telegram.org/bot{TOKEN}/setWebhook?url={SERVER_DOMAIN}/bot{TOKEN}
4- finished :) just start app with npm run start
command
https://gtsg.ir