Files
AdNova/services/telegram_bot/README.md
T
2025-03-07 19:32:09 +03:00

1.3 KiB

AdNova Telegram Bot

Prerequisites

Ensure you have the following installed on your system:

Basic setup

Installation

Clone the project

git clone https://gitlab.prodcontest.ru/2025-final-projects-back/devitq.git

Go to the project directory

cd devitq/solution/services/telegram_bot

Customize environment

cp .env.template .env

And setup env vars according to your needs.

Install dependencies

For dev environment
uv sync --all-extras
For prod environment
uv sync --no-dev

Running

uv run python main.py

Containerized setup

Clone the project

git clone https://gitlab.prodcontest.ru/2025-final-projects-back/devitq.git

Go to the project directory

cd devitq/solution/services/telegram_bot

Build docker image

docker build -t adnova-telegram_bot .

Customize environment

Customize environment with docker run command (or bind .env file to container), for all environment vars and default values see .env.template.

Run docker image

docker run --name adnova-telegram_bot adnova-telegram_bot