- Create Telegram Bot via t.me/BotFather.
- Create Firebase Project (Web App).
- Create
.env
file insidebot
directory. - Put the Telegram Bot Token inside the
bot/.env
file. - Prepare random secret from OTP Login, put into
bot/.env
file. Do not forget toyarn install
insidebot
directory.
.env
:
TOKEN=<Telegram Bot Token>
OTP_SECRET=<OTP Secret>
- Prepare
bot/external/
directory, do all the steps inbot/external/README.md
. - Deploy the Firebase project (inside
firebase/
directory). cd
tobot
directory.- Run
yarn build
. - Run
yarn start
. - Scan the
qrcode.png
file generated insidebot/external/
usingGoogle Authenticator
. - Open the server in http://localhost:3000.
- Login into the dashboard using
Google Authenticator
generated OTP.
For future execution, you only need to do steps 9-13 (step 11 is not needed if
you're not changing the OTP_Secret
).