A Telegram Bot and API that helps users with namaz-related questions using a multi-agent recommender architecture.
Explore the docs Β»
πΊ Watch Demo Video
π View Product
Table of Contents
The goal of this project is to build a multi-agent recommendation system that assists users with Islamic prayer guidance through an interactive Telegram bot. The system is backed by a FastAPI server and uses MongoDB to store users and conversations.
- Provide helpful recommendations and answers about namaz in a conversational way.
- Maintain and analyze user interactions to improve personalized responses.
- A Telegram bot (using
python-telegram-bot) that communicates with users. - A FastAPI backend that handles data storage, business logic, and API routing.
- A MongoDB database accessed via the async
motordriver.
- Bot can understand the context
- Bot can understand the app structure
- User can create multiple conversation
- User can ask everything about namaz
- User can send voice messages
- Endpoint for Namaz.app
- Provide the explanation how model work
You can use our bot by launching it using the provided link. No further action is required.
To use the recommender system you can contact us to get API endpoints.
The Railway service is used to deploy our project. To repeat the project deployment, you can follow these steps:
- Register or log in to your Railway account
- Click to button to deploy new project

- And choose project to deploy from the Github

- Add enviroment variables:

-
Clone the repo:
git clone https://github.com/swp-team-1/mars_bot_1.5.git cd mars_bot_1.5 -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the requirements:
pip install -r requirements.txt
-
Create an
.envfile (copy from.env.example) and configure:BOT_TOKEN=your_telegram_bot_token MONGODB_URI=your_mongodb_connection_uri
-
Run services:
uvicorn main:app --reload # FastAPI backend python bot_main.py # Telegram bot
Contributions make the open source community an incredible place to learn and grow. Any help is greatly appreciated!
Have an idea to improve mars_bot_1.5? Fork the repo, make your changes, and open a pull request. Or just open an issue with the tag enhancement.
- Fork the project
- Create your branch (
git checkout -b feature/MyFeature) - Commit your changes (
git commit -m 'Add MyFeature') - Push (
git push origin feature/MyFeature) - Open a pull request
Distributed under the MIT License. See LICENSE for more information.
- Black-persik β @black_persik
- tabletka_812 β @tabletka_812
- eerterr β @eerterr
- Leo_Vesin β @Leo_Vesin
- Desgun4ik β @Desgun4ik
- Project: github.com/swp-team-1/mars_bot_1.5
- python-telegram-bot β Telegram Bot Framework
- FastAPI β Web framework
- Motor β Async MongoDB driver
- python-dotenv β Manage environment variables
- contrib.rocks β Contributor avatars


