Skip to content

A Java-based Telegram bot delivering timely updates from The Economist. Featuring real-time news fetching, scheduled postings, and seamless deployment with Docker and Railway.

Notifications You must be signed in to change notification settings

RomanPilyushin/the-economist-telegram

Repository files navigation

EconomistBot

Description

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.

Try the Bot

You can start using the EconomistBot by following this link to the bot on Telegram: The World in Brief Bot.

Features

  • 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.

Libraries and Technologies

Java

  • Version: JDK 11 or higher.
  • Purpose: Primary programming language for developing the bot.

JSoup

  • Website: JSoup.org
  • Purpose: Used for parsing HTML and scraping news content from web pages.

Telegram Bot API

  • Documentation: Telegram Bot API
  • Purpose: Provides the necessary tools and functionalities to interact with users on Telegram.

Scheduled Executor Service

Eclipse Jetty

  • Website: Eclipse Jetty
  • Purpose: Provides a web server and javax.servlet container for handling HTTP requests and serving health check endpoints.

Logging

  • Technology: Java Util Logging
  • Purpose: For logging information, warnings, and errors during the application's runtime.

Gradle

  • Purpose: Dependency management and project build tool.

Environment Configuration

  • Purpose: Managing configuration properties such as Telegram bot token and username.

Configuration

Configure your API key in the config.properties:

bot.token=YOUR_BOT_TOKER_HERE
bot.username=YOUR_BOT_USERMANE_HERE

Email

rpilyushin [at] gmail.com

About

A Java-based Telegram bot delivering timely updates from The Economist. Featuring real-time news fetching, scheduled postings, and seamless deployment with Docker and Railway.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published