GitHunt

bot_car_number

Python versions
License MIT
Code style black
Main bot_car_number workflow

Description

Telegram bot for notifying car owners

Pic

Quickstart

Create bot and get token

https://core.telegram.org/bots#how-do-i-create-a-bot

Clone the repository

git clone <https or SSH URL>
cd <repository_name>

Configure environment

Create and edit .env file from the .env.example

cp .env.example .env

Create PostgreSQL database

createdb -U postgres -h localhost -p 5432 bot_car_number

Installation and run (Choose one method)

pip

# Create and activate virtual environment
python3.12 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install -e .

# Export environment variables
export $(grep -v '^#' .env | xargs)

# Run migrations
alembic upgrade head

# Run app
python -m bot_car_number

uv

# Create and activate virtual environment
uv venv
source .venv/bin/activate

# Install dependencies
uv sync

# Export environment variables
export $(grep -v '^#' .env | xargs)

# Run migrations
alembic upgrade head

# Run app
uv run python -m bot_car_number