EconomistBot is a Java-based Telegram bot designed to provide users with the latest news updates. Leveraging the capabilities of Telegram's bot API and web scraping technologies, it dynamically fetches and delivers news content from reputable sources. This bot is particularly tailored to provide updates from "The Economist," making it a valuable tool for users interested in staying informed about global events and economic news.
You can start using the EconomistBot by following this link to the bot on Telegram: The World in Brief Bot.
- Real-time news updates directly in Telegram.
- Integration with news sources for up-to-date information.
- Scheduled daily news updates to keep users informed.
- Custom commands for on-demand news retrieval.
- Efficient HTML content parsing and formatting for Telegram.
- Containerization with Docker for consistent deployment environments.
- Continuous deployment and hosting with Railway for seamless updates and scalability.
- Version: JDK 11 or higher.
- Purpose: Primary programming language for developing the bot.
- Website: JSoup.org
- Purpose: Used for parsing HTML and scraping news content from web pages.
- Documentation: Telegram Bot API
- Purpose: Provides the necessary tools and functionalities to interact with users on Telegram.
- JavaDoc: ScheduledExecutorService
- Purpose: Used for scheduling daily news updates at specific times.
- Website: Eclipse Jetty
- Purpose: Provides a web server and
javax.servlet
container for handling HTTP requests and serving health check endpoints.
- Technology: Java Util Logging
- Purpose: For logging information, warnings, and errors during the application's runtime.
- Purpose: Dependency management and project build tool.
- Purpose: Managing configuration properties such as Telegram bot token and username.
Configure your API key in the config.properties:
bot.token=YOUR_BOT_TOKER_HERE
bot.username=YOUR_BOT_USERMANE_HERE
rpilyushin [at] gmail.com