A Python bot that scrapes the latest technology news and can be scheduled to create an image post, then send it to a Telegram channel.
To install and set up the bot, follow these steps:
git clone https://github.com/Subramanian-E/Tech-News-Telegram-Bot
cd Tech-News-Telegram-Bot
pip install -r requirements.txtAfter installation, check the config.yaml file to configure your settings.
Open the config.yaml file and update the following settings with your own values:
telegram_bot_token: Your Telegram bot token.schedule_time: The time at which the bot should post the news.chat_id: The Telegram chat ID where the news will be posted.join_url: The URL for the "Join Us" button.font_path: The path to the font file.cover_image_path: The path to the cover image file.
Below is an example of the cover image that the bot will use:
Here is an example of a post that the bot will create and send to your Telegram channel:
Run the bot using the following command:
python main.pyThe bot will fetch the latest technology news from Inshorts, create an image post, and send it to the specified Telegram channel at the scheduled time.
Feel free to contribute to the project or report any issues you encounter.
