A FastAPI-based Telegram bot that delivers personalized crypto news, price alerts, and market intelligence.
- Real-time price alerts and monitoring
- Personalized news aggregation
- Portfolio tracking
- Smart notifications
- Premium features for subscribed users
- FastAPI
- Prisma ORM
- PostgreSQL
- Telegram Bot API
- Python 3.9+
- Python 3.9+
- PostgreSQL
- Telegram Bot Token
- Clone the repository:
git clone <repository-url>
cd crypto-news-bot
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
- Copy
.env.example
to.env
- Fill in required environment variables
- Initialize database:
prisma db push
- Run the application:
uvicorn app.main:app --reload
├── app/
│ ├── api/ # API routes
│ ├── core/ # Core functionality
│ ├── models/ # Pydantic models
│ ├── services/ # Business logic
│ ├── utils/ # Utility functions
│ └── main.py # FastAPI application
├── prisma/ # Prisma schema and migrations
├── tests/ # Test files
├── .env # Environment variables
├── requirements.txt # Python dependencies
└── README.md # Project documentation
Once the application is running, visit:
- Swagger UI:
http://localhost:8000/docs
- ReDoc:
http://localhost:8000/redoc
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT