controller β probably the best bot for a reminder of the end of the subscription.
- Python β programming language
- Redis β persistent storage
- PostgreSQL β best relational database
- NATS JetStream β communications system for digital systems
- Docker β containerization platform
- aiogram β async framework for Telegram Bot API
- aiogram-dialog β developing interactive messages
- asyncpg β fast client for PostgreSQL Database
- SQLAlchemy β SQL toolkit & ORM
- alembic β migration tool
- nats-py - Python client for NATS
- taskiq β distributed task queue
- dynaconf β configuration management
- structlog β structured logging
- zstd β compression technology
- ormsgpack β msgpack serialization
- markupsafe β safely add untrusted strings to HTML
- fluent.runtime β localization / internationalization
1. Clone the repository:
git clone https://github.com/Markushik/controller-new.git
2. Create file .secrets.toml
in folder configs
and fill data
3. Run the command:
docker-compose up
1. Clone the repository:
git clone https://github.com/Markushik/controller-new.git
2. Create file .secrets.toml
in folder configs
and fill data
3. Bring up PostgreSQL, Redis and NATS
4. First run the taskiq
scripts:
taskiq worker application.infrastructure.scheduler.tkq:broker --fs-discover --reload --max-async-tasks -1
taskiq scheduler application.infrastructure.scheduler.tkq:scheduler --fs-discover
5. Second run the bot
:
python -m application.tgbot