This project is a Telegram bot developed using Node.js and the Telegram API. It provides various functionalities to enhance the Telegram user experience.
- Weather: Fetch weather information for any city.
- Wikipedia: Retrieve Wikipedia articles on different topics.
- GitHub Profile: Fetch details of GitHub user profiles.
- Random Quote: Generate and share random quotes.
- News Headlines: Fetch news headlines from around the world.
- Quizzes: Engage users with interactive quizzes.
- YouTube Song Search: Search and retrieve YouTube song videos.
- Node.js: A powerful JavaScript runtime that enables server-side development.
- Telegram API: Facilitates seamless communication between the bot and Telegram users.
To get started with this Telegram bot project, follow the steps below:
- Clone the repository:
git clone https://github.com/your-username/telegram-bot-project.git
- Install dependencies:
npm install
- Configure your Telegram bot token in the
config.js
file. - Run the bot:
node bot.js
Once the bot is up and running, you can interact with it through Telegram. Simply search for the bot using the username you provided during the bot creation process.
To use the different functionalities, send the following commands to the bot:
/weather [city]
: Fetches the weather information for the specified city.-
-
/search [topic]
: Retrieves a Wikipedia article on the specified topic.-
/github [username]
: Fetches the GitHub profile details of the specified username.-
/quote
: Generates and shares a random quote.-
/newstopic
: Fetches the latest news headlines from around the world.
/newscategory
: Fetches the latest news headlines from around the world of specific topics.
-
/quiz
: Starts an interactive quiz. -
-
/song [query]
: Searches for YouTube song videos based on the specified query.
Feel free to explore and test out the various features of the bot.
Contributions to this Telegram bot project are welcome. If you have any suggestions, improvements, or bug fixes, please submit a pull request. Make sure to follow the established code style and guidelines.
If you have any questions or inquiries about this Telegram bot project, please feel free to reach out to me at [narayandutta2208@gmail.com].