A Telegram bot for managing a small library. Allows tracking readers, books, deposits, and quickly processing book checkouts and returns.
- Registration of new readers with contact information
- Lending books to readers with deposit tracking
- Book returns with deposit management
- View list of active book loans
- View list of all registered readers
-
Copy the configuration file and add your Telegram token:
cp config/.env.example config/.envThen open the
config/.envfile and add your token from BotFather. -
Start the bot using Docker Compose:
docker-compose up -d -
To stop the bot:
docker-compose down
- Start interacting with the bot by sending the
/startcommand - Select the desired action from the menu:
- Add a new reader
- Check out a book
- Accept a book return
- View the list of readers
- View the list of checked out books
The system works based on a fixed deposit of 50 euros. A reader can borrow multiple books (up to 5) for a single deposit. The deposit is returned when the reader returns all books.