Welcome to Stream Suggester Bot, a Telegram bot that provides personalized movie recommendations based on your preferred genre and language. Powered by The Movie Database (TMDb) API, this bot fetches the most popular movies tailored to your choices.
- Genre Selection: Choose from a variety of genres including Action, Comedy, Drama, Horror, and more.
- Language Preference: Get movie recommendations in your preferred language such as English, Hindi, Spanish, etc.
- Interactive Interface: Utilizes Telegram's inline buttons for a seamless user experience.
- Dynamic Recommendations: Fetches the latest popular movies from TMDb.
- Session Management: Remembers user sessions to provide continuous recommendations.
- Node.js: Ensure you have Node.js installed. You can download it here.
- Telegram Bot Token: Obtain a bot token by creating a new bot via the BotFather on Telegram.
- TMDb API Key: Sign up and get your API key from TMDb.
-
Clone the Repository
git clone https://github.com/adhikareeprayush/Stream-Suggester-Telegram-Bot.git cd StreamSuggesterBot
-
Install Dependencies
npm install
-
Configure Environment Variables
Create a
.env
file in the root directory and add your credentials:YOUR_BOTS_TOKEN=your_telegram_bot_token_here YOUR_TMDb_API_TOKEN=your_tmdb_api_key_here
-
Run the Bot
node index.js
-
Start the Bot: Open Telegram and search for your bot. Click Start or send
/start
. -
Get Recommendations: Click on "Get Movie Recommendations" to begin.
-
Choose Genre: Select your preferred genre from the list.
-
Choose Language: Select your preferred language.
-
View Recommendations: The bot will fetch and display a list of movie recommendations based on your selections.
-
More Recommendations: If available, you can choose to see more recommendations or start over.
- Action
- Adventure
- Comedy
- Drama
- Horror
- Science Fiction
- Romance
- Thriller
- Animation
- Family
- Fantasy
- Mystery
- English
- Hindi
- Spanish
- French
- German
- Japanese
- Korean
- Chinese
index.js
: Main bot logic.package.json
: Project metadata and dependencies..env
: Environment variables (not included in the repository).
- node-telegram-bot-api: Telegram Bot API for Node.js.
- axios: Promise-based HTTP client for the browser and Node.js.
- dotenv: Loads environment variables from
.env
file.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License.
- The Movie Database (TMDb) for the movie data.
- Telegram for the platform and API.
Happy Movie Watching! 🎬