Easily monetize your Telegram channels via the Crypto Pay API.
This bot was created to win the Crypto Bot Contest.
Developed with ❤️ by @RamzCoder.
-
Install dependencies via
npm install
. -
Copy the
.env.example
file into a.env
file. -
In
.env
file set the following environment variables:NODE_ENV=development BOT_TOKEN=<your test bot token> MONGODB_URI=<your local mongodb instance uri> CRYPTO_PAY_TOKEN=<your crypto pay api token>
Please note: Running the bot with
NODE_ENV=development
deletes the webhook to start polling. Make sure to use a non-production token inBOT_TOKEN
environment variable. -
Start the bot using
npm start
-
Install dependencies via
npm install
. -
Copy the
.env.example
file into a.env
file. -
In
.env
file set the following environment variables:NODE_ENV=production BOT_TOKEN=<your production bot token> MONGODB_URI=<your production mongodb instance uri> CRYPTO_PAY_TOKEN=<your crypto pay api token> APP_URL=<your app url to install the webhook to> PORT=<your port to listen the updates on>