This is a Telegram bot implemented using the Telegram API and the python-telegram-bot library. The bot allows users to access PDF files based on their branch, semester, subject, and unit.
- Clone the repository.
- Install the required dependencies:
- Start the bot by sending the
/start
command. - The bot will prompt you to enter your name. Enter your name and press Enter.
- If you enter "Mayur" as the name, the bot will enter teacher mode and ask you to upload a PDF file. Upload a PDF file to save it on the server. (gotta make changes in this)
- If you enter any other name, the bot will ask you to enter your USN (University Seat Number). Enter your USN in the specified format (e.g.,
4SI18CS001
) and press Enter. - The bot will validate the USN and ask you to select a semester from the available options.
- After selecting the semester, the bot will ask you to select a subject from the available options.
- Once you select a subject, the bot will ask you to select a unit from the available options.
- After selecting the unit, the bot will provide you with the corresponding PDF file if it exists on the server.
- If the PDF file is found, the bot will send the file to you. Otherwise, it will notify you that the PDF file was not found.
- You can continue selecting subjects and units or start a new search by selecting a different semester.
This project is licensed under the MIT License. See the LICENSE
file for more information.