Simple web page with the text is made out of your public Telegram channel posts.
I have not seen any available free solution on the internet, but there are paid versions, which in my opinion cost more tha they should.
from the link above:
In order to obtain an API id and develop your own application using the Telegram API you need to do the following:
Sign up for Telegram using any application.
Log in to your Telegram core: https://my.telegram.org.
Go to 'API development tools' and fill out the form.
You will get basic addresses as well as the api_id and api_hash parameters required for user authorization.
For the moment each number can only have one api_id connected to it.
from the link above:
Use the /newbot command to create a new bot. The BotFather will ask you for a name and username, then generate an authorization token for your new bot.
The name of your bot is displayed in contact details and elsewhere.
The Username is a short name, to be used in mentions and t.me links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot's username must end in ‘bot’, e.g. ‘tetris_bot’ or ‘TetrisBot’.
The token is a string along the lines of 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw that is required to authorize the bot and send requests to the Bot API. Keep your token secure and store it safely, it can be used by anyone to control your bot.
This command requires Telegram API user access, which requires you to login(will ask you for telephone number and will wait for confirmation code)
export WEBSITE_NAME=https://example.com
export TELEGRAM_CHANNEL_NAME=your-awesome-channel
export TELEGRAM_API_ID=id
export TELEGRAM_API_HASH=hash
export TELEGRAM_BOT_TOKEN=token
export BLOG_EXPOSE_WAY=http
python3 bot.py build-from-scratch
the output of command will be index.html
in the current folder, which can be opened via browser.
In order to run http server use [listen-events](#Listen on new channel messages)
export WEBSITE_NAME=https://example.com
export TELEGRAM_CHANNEL_NAME=your-awesome-channel
export TELEGRAM_API_ID=id
export TELEGRAM_API_HASH=hash
export TELEGRAM_BOT_TOKEN=token
export BLOG_EXPOSE_WAY=http
python3 bot.py listen-events
Resulted index.html
will be accessible at http://localhost:8080
docker run docker.pkg.github.com/adyach/telegram-blog/telegablogbot:latest \
-e WEBSITE_NAME=your_web_blog \
-e TELEGRAM_CHANNEL_NAME=channel_name \
-e TELEGRAM_API_ID=api_id \
-e TELEGRAM_API_HASH=api_hash \
-e TELEGRAM_BOT_TOKEN=bot_token \
-e BLOG_EXPOSE_WAY=http