418 B
418 B
Telegraf Bot Pattern
Change .env.example to .env
Started init:
yarn install
andnpm install pm2 -g
Mode Default:
yarn dev
- For Development
Mode Cluster:
yarn prod
- In Production bot
Mode Production PM2:
yarn pm:prod
yarn pm:stop
yarn pm:up
// pm2 startup
Example
.env
( BOT_CLUSTER_CORE = 2 ) or AutoScale ( BOT_CLUSTER_CORE = 0 )