This Telegram bot facilitates peer-to-peer lending, allowing users to create, join, and manage lending groups, as well as request and lend money within those groups.
- Group Management: Users can create, join, and delete lending groups.
- Loan Requests: Members can request loans from other group members.
- Loan Proposals: Group members can propose loan offers with interest rates.
- Group Membership: Users can view members of a group they're part of.
- User Authentication: Basic user authentication is implemented using Telegram usernames.
- Interaction: The bot responds to commands and prompts from users.
- telebot: Python framework for Telegram Bot API.
- neural_intents: Library for building and managing intent-based chatbots.
- pymongo: Python driver for MongoDB, used for database operations.
- re: Regular expression operations for extracting numeric values from text.
- Create Bot by using command '/newbot' in BotFather telegram
- Obtain API Key: Obtain its Telegram Bot API key from BotFather and replace
API_KEY
in the code with your own key. - Install Dependencies: Install required Python libraries using
pip install -r requirements.txt
. - Database Configuration: Set up a MongoDB database and configure connection details in the
database.py
file. - Run the Bot: Execute the Python script to run the Telegram bot.
Start the bot by sending the /start
command.
Two types of login:
- Creates a Group by providing group name and group join code
- Sets a password for admin login
- Has access to the details of all transactions
- Can remove a member from group
- Can delete a group
- Joins a group using the group name and join code provided by the admin
- Can demand the bot for loan (no restriction on loan amount)
- Can choose among the proposals given by the anonymous lenders
- Repay the amount back to lender through admin
- Rizul Gupta
- Shambhavi Verma
- Anjana Gupta
- Lata Sah
- Anshika Gupta
Special thanks to our mentor Sandeep Manthi for their guidance and support throughout the development process.