From 1188a7447b4d62b1042b3c32a529eeea56e1615f Mon Sep 17 00:00:00 2001 From: deptyped Date: Thu, 16 May 2024 02:20:42 +0300 Subject: [PATCH] Update docs --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index be5ab431..df838ebc 100644 --- a/README.md +++ b/README.md @@ -59,14 +59,12 @@ Follow these steps to set up and run your bot using this template: npm install --only=prod ``` - Set `NODE_ENV` environment variable to `production` in your `.env` file. - Set `BOT_MODE` environment variable to `webhook`. + Set `NODE_ENV` environment variable to `production` in your `.env` file. Update `BOT_WEBHOOK` with the actual URL where your bot will receive updates. Update `BOT_WEBHOOK_SECRET` with a random secret token. ```dotenv NODE_ENV=production - BOT_MODE=webhook BOT_WEBHOOK=/webhook BOT_WEBHOOK_SECRET= ``` @@ -283,8 +281,8 @@ npm i @grammyjs/runner Optional. - Specifies method to receive incoming updates (polling or webhook). - Defaults to polling. + Specifies method to receive incoming updates (polling or webhook).
+ Default depends on NODE_ENV (polling for development, webhook for production).