This project consists of a Telegram bot with an accompanying Streamlit dashboard for user management.
- Telegram bot with AI-powered responses
- User authorization and rate limiting
- Admin dashboard for user management
- Docker containerization for easy deployment
- Clone the repository
- Copy
.env.exampleto.envand fill in the required values - Build and run the Docker containers:
docker-compose up --build- Located in
src/telegram-bot/ - Handles message processing and AI responses
- Uses OpenAI's API for generating responses
- Located in
src/streamlit-app/ - Provides an interface for managing bot users
- Accessible at
http://localhost:8501
- SQLite database for storing user information
- Managed through
src/db.py
- Interact with the bot on Telegram
- Access the admin dashboard to manage users
To run the project locally without Docker:
- Install requirements for both the bot and dashboard
- Run the bot:
python src/telegram-bot/app.py - Run the dashboard:
streamlit run src/streamlit-app/app.py