Support Group - Telegram
- 1 - clone repo
git clone git@github.com:Muhammadali-Akbarov/fastgram.git
- 2 - Setting up environment variables
cp .env.dist .env
- 3 - RUN Project the following commands
make run.image
- run with docker
- 4 - Run the following commands without docker
python3 -m venv venv
source venv/bin/activate
or./venv/Scripts/activate
pip3 install -r requirements.txt
uvicorn main:app --port ${SERVICE_PORT}
run botcelery -A app.bot.services.external.celery.tasks worker -l INFO
run celery workercelery -A app.bot.services.external.celery.tasks beat -l INFO
run celery beat
Fastgram is built using the following technologies:
- FastAPI: A modern, fast (high-performance) web framework for building APIs with Python 3.6+ based on standard Python type hints.
- aiogram 3: An asynchronous framework for Telegram Bot API based on asyncio and aiohttp.
- SQLAlchemy: The Python SQL toolkit and Object-Relational Mapping (ORM) library.
- PostgreSQL: A powerful, open-source object-relational database system.
- Redis: An in-memory data structure store, used as a database, cache, and message broker.
- Celery: An asynchronous task queue/job queue based on distributed message passing.
- FastStream: For pub/sub messaging.
This combination of technologies ensures that Fastgram is robust, scalable, and ready for production environments.
(fastgram) π fastgram % tree app/bot/services/external/aiogram
app/bot/services/external/aiogram
βββ __init__.py
βββ enum
β βββ __init__.py
β βββ state.py
βββ filter
β βββ __init__.py
β βββ chat.py
β βββ payment.py
β βββ text.py
βββ handler
β βββ __init__.py
β βββ echo.py
β βββ example.py
β βββ start.py
βββ keyboard
β βββ __init__.py
β βββ inline
β β βββ __init__.py
β β βββ create.py
β β βββ default.py
β βββ markup
β βββ __init__.py
β βββ create.py
β βββ default.py
βββ middleware
β βββ __init__.py
β βββ lang.py
βββ router
β βββ __init__.py
β βββ prepare.py
βββ shortcut
β βββ __init__.py
β βββ action.py
β βββ schema.py
βββ state
β βββ __init__.py
β βββ intro.py
βββ storage
βββ __init__.py
βββ fsm.py