This is a Telegram chatbot that fetches PDFs of questions papers that have been asked by the Mumbai University.
muquestionpapers.com hosts PDFs for most if not all previously asked question papers for Engineering in Mumbai University. The bot scrapes this website and sends the PDFs to the user directly on the Telegram app using the Telgram Bot API.
Created this as a side-project to avoid opening a website and going through the steps everytime I wish to find a question paper.
The bot is hosted online on Heroku.
Chatbots are fun, and Telegram has one of the best APIs to make one. This project uses the python-telegram-bot wrapper which provides a Python interface for the Telegram API.
Your First Bot using python-telegram-bot
-
Create a new bot with BotFather and copy the API TOKEN
-
Clone this repository
-
Run
pip install -U -r requirements.txt
to install the dependencies -
Create a .env file in the
bots
directory with the following content:TOKEN = your_token_here
-
Set
DEBUG
toTrue
intelegram_bot.py
-
Run
telegram_bot.py