-
Notifications
You must be signed in to change notification settings - Fork 21
How to RUN
Albert Safiullin edited this page Nov 12, 2023
·
8 revisions
Welcome to the formatbot1 wiki!
- clone the repo
git clone https://github.com/albertincx/formatbot1.git
cd formatbot1
- install modules and dev module
yarn
bash dev-install.txt
- Create bot by https://t.me/BotFather and set TBTKN to .env file (REQUIRED)
TBTKN=you bot token from BotFather
TGADMIN=you telegram ID
3.1 Optional. Create 2 DB instance with best DB corp https://cloud.mongodb.com and set to .env file (REQUIRED)
MONGO_URI=CONNECTON_URI
MONGO_URI_OLD1=CONNECTON_URI_SECOND_INSTANCE
- Get the multiple tokens from http://telegra.ph/api and set to .env file (REQUIRED)
TGPHTOKEN_0=telegra.ph token
TGPHTOKEN_1=telegra.ph token
...
TGPHTOKEN_6=telegra.ph token
- Go to https://cloudamqp.com/ and get the URI, set MESSAGE_QUEUE to
.env
file (REQUIRED)
MESSAGE_QUEUE="uri from cloudamqp"
- run
yarn dev