Quick access to Moldovan school books via Telegram
This repository contains the open source code of a Telegram bot capable of sending school books via inline mode directly to chat. Developed in Python, this bot provides quick access to downloading educational books for schoolchildren of different grades in Moldova.
To request a book, simply type "@Mdbooks_bot" (or your bot's nickname) in the message input field, followed by the grade number (1 to 12, 13 for English books, and 14 for French books) and the book's name. For example: "@Mdbooks_bot 7 fiz" or "@Mdbooks_bot 7 fizica". The bot will suggest options based on your query.
- Clone this repository:
git clone https://github.com/SFmindMAP/MdBooks_bot
- Install dependencies with
pip install -r requirements.txt
- Navigate to the directory containing the repository files and edit
YOUR_API
with your API token in thebot.py
file. - Enable inline mode for your bot in @BotFather: Bot Settings > Inline Mode > Turn inline mode on.
- Run your bot:
python bot.py
. (For Linux: If you want to run the bot in the background, use this command:nohup python bot.py > /dev/null 2>&1 &
)
Version V2 is in development, which will include direct file sending instead of URLs for downloading.
This project is licensed under the GNU General Public License v3.0.
If you have any suggestions or ideas, feel free to reach out: