A bot for managing payments for a network of Vilnyy co-livings.
- Create your Telegram bot using the BotFather bot.
- Add the Telegram bot token to the
.env
file. - Create a Postgres database and a Redis database.
- Using the
.env.example
file as an example, create an.env
file and add there the following variables:- the Telegram bot token;
- the URL of the Postgres database;
- the URL of the Redis database;
- Install the dependencies:
make env
- Compile the locales:
pybabel compile --directory ./locales
- Run the bot using
make run
The project uses POEditor to manage locales. Here is the Project's page in POEditor.
- Extract the identifiers/terms using
pybabel extract --input-dirs . --output ./locales/messages.pot
- Import the identifiers/terms into POEditor.
- Translate the identifiers/terms into the desired languages.
- Update the locales/translations (see below).
- Go to the project page.
- [Optional] Make the changes in the project.
- Select the language you want to export.
- Export the
.mo
file and save it as./locales/$YOUR_LANGUAGE/LC_MESSAGES/messages.po
file. - Compile the locales using
pybabel compile --directory ./locales
NB: More info on how to use locales can be found in
the aiogram
's documentation.
- Ask for an email address to send invoices to.