-
Notifications
You must be signed in to change notification settings - Fork 18
3. Setup & Installation
Aditya Sharma edited this page May 7, 2024
·
3 revisions
Follow the steps to setup Flaregram on your environment:
- Clone the repo locally and changing into directory with:
git clone https://github.com/adityash4rma/flaregram.git
cd flaregramUse any file explorer or cmd/bash/powershell to rename, here am using powershell -
Rename-Item .\wrangler_sample.toml .\wrangler.tomlBOT_TOKEN
It is the Bot Token of your Telegram Bot, can be obtained from @botfather (on telegram), How to Get BOT_TOKEN
WEBHOOK_URL
The webhook url with the format
cloudflare workers domain/bot, i.e.https://myworker.mysubdomain.workers.dev/bot, the endpoint should be/botand nothing else.
-
SECRET_TOKEN(optional)
The token is useful to ensure that the request sent from our bot is sent by us. Token should be 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed.
-
DROP_PENDING_UPDATES(optional)
Set
Trueto drop all pending updates.
- Install the package in
package.jsonby:
npm installThat's it! Move on to the next step!
Continue reading...