The Bot is a Telegram bot that allows users to search for movie information using the OMDB API. Users can either input a movie name to get details or provide the IMDb ID directly. Additionally, the bot features a section dedicated to displaying the IMDb Top 250 movies.
- Search by Movie Name: Users can use the
/search
command to get a movie to find relevant information. - Search by IMDb ID: Users can provide the IMDb ID of a movie to get details directly.
- IMDb Top 250 Movies: Explore the list of the top-rated movies on IMDb using the
/top250
command. - Key Movie Information: The bot provides details such as title, year, genre, plot, and ratings.
- User-friendly Interaction: Simple and intuitive commands for a smooth user experience.
Browse the curated list of the top-rated movies on IMDb using the /top250
command.
In the code repository, you will find the following important files:
-
main.py: The main script that initializes the MovieBot Telegram bot and manages the bot's entry point.
-
Database.py: Handles interactions with the database, storing and retrieving relevant information.It works with .pickle format files.
-
Functions.py: Contains various functions and utility methods used across different modules.
-
Keyboards.py: Defines custom keyboards and interactive elements used in the Telegram bot.
-
Show.py: Implements the logic for displaying movie details and information.
-
Strings.py: Stores string constants and messages used throughout the bot.
-
User.py: Defines the
User
object, managing user-related functionalities and data storage. -
Top250.json: This file is utilized for creating the
/top250
command section. It contains information about the IMDb Top 250 movies, including their titles, years, and IMDb IDs. The bot reads this file to provide users with a curated list of top-rated movies.
Feel free to explore these files if you are interested in the internal workings of the Bot application.
To run the bot locally, follow these steps:
- Clone the repository:
git clone [repository URL]
- Install dependencies:
pip install -r requirements.txt
- Obtain an API key from OMDB API (https://www.omdbapi.com/) and update the configuration.
- Run the bot:
python bot.py
API_KEY
: Your OMDB API key. Obtain it from https://www.omdbapi.com/.
This project is licensed under the MIT License.
- Special thanks to OMDB for providing the movie database API.