Welcome to the Books Recommendation Bot! This Telegram bot helps you discover interesting books by filtering them by author, genre, or year. It’s designed to make finding your next read easy. In this project, I use MS SQL, .NET 8, LINQ, and the last version of Telegram Bot Library (21.11.0)
- 🔎 Find books: Search for books by author, genre, or year
- 📋 Author List: In bot you can find a link to view a list of authors
- 🎮 Interactive: The bot includes interactive buttons and choices
- 🎯 Genre Selection: Choose up to two genres available in the database to find books
- 📆 Year Filter: Enter 1 or 2 dates to search for books
- 🗄️ Books Database: The bot fetches data from an internal BooksDB for recommendations
- Clone the repository by pressing green button
Code🟩 - Set up your bot token in the
_botClientfield inMain. For better security (since it's hardcoded in this code), you can change it toEnvironment.GetEnvironmentVariable("")or configure it in yourappsettings.json - Change connection string in
BooksDBto match your configuration - Finally, run your telegram bot😄
- /start - get a welcome message with available options
- /findbook - start the process of finding book by selecting author, genre, or year
- /description - learn about the bot
- /help - get a list of all available commands
- Start the Bot: Type /start to receive introduction and a menu of options
- Press
/findbook - Choose Your Search Method:
- Author: Enter the name of the author, if you can't find author go to the view with authors list
- Genre: Select from a list of genres
- Year: Choose a specific year or range
- Get your recommendation 😆
Feel free to open issues or submit pull requests for any suggestions or improvements. I welcome your feedback! 😃
You can send me mail: arsenburko67@gmail.com or find me in telegram @arssssssssssssssssssss