A telegram bot that helps to calculate the financial expenses of a family. Inspired by an article in Tinkoff journal
-
Install globally localtunnel
-
Run webhook server with
lt --port 4444 --subdomain scroogie-test
-
Create PostgreSQL database for project
-
Create
.env
file at the root of the project with the following variables:
APP_URL
- url of the webserver, for examplehttps://scroogie-test.loca.lt
APP_PORT
- port of webserverDATABASE_HOST
- host of PostgreSQL database, for examplelocalhost
DATABASE_NAME
- name of PostgreSQL databaseDATABASE_USER
- user that has access to PostgreSQL databaseDATABASE_PASSWORD
- password of the databaseGIPHY_API_KEY
- API key for GiphyTELEGRAM_BOT_HELPER_TOKEN
- token of helper bot (for DB dumps)TELEGRAM_BOT_HELPER_USER
- bot admin ID, for example109470339
TELEGRAM_BOT_TOKEN
- our bot tokenTELEGRAM_USERS
- array of Telegram user ids
Pull requests are welcome.
MIT © Azat S.