This Telegram bot automates the process of creating blog posts from updates in a Telegram channel. It generates markdown files for blog posts and pushes them to a GitHub repository.
โ๏ธ Listens to updates in a Telegram channel.
๐ Generates blog post titles using OpenAI GPT-3.
๐๏ธ Organizes posts in the /blog/_posts
directory structure.
๐ฆ Pushes generated posts to a GitHub repository.
-
Clone this repository:
git clone https://github.com/Lulzx/tg-jekyll.git cd tg-jekyll
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your Telegram bot by creating a bot on Telegram and obtaining the API token.
-
Configure your GitHub repository and obtain a personal access token.
-
Obtain an API key for OpenAI's GPT-3 API.
-
Update the
main.py
file with your API tokens and paths.
-
Invite your bot to the target Telegram channel with appropriate permissions.
-
Run the bot using:
python3 telegram_bot.py
-
The bot will automatically listen to updates in the channel and generate blog posts.
Contributions are welcome! Feel free to submit issues and pull requests.
This project is licensed under the MIT License.
๐ Happy blogging with your automated Telegram bot!