A simple and brutal public message log for Telegram channels, focused on text and poll messages.
- For text messages or media message with a caption, the text/caption is used.
- For poll/quiz messages, the question and all options are used.
- Message ID is always used to produce a link to the message.
- There is no indication about message type.
- Web: https://blueset.github.io/polls_channel_history
- Updated daily via GitHub Actions
- Code license: MIT
- Clone or download this repository locally.
- Install Python 3.
- Install all Python dependency packages via
python3 -m pip install -r requirements.txt
. - Export your channel using Telegram Desktop, choose the time range of messages, and export to JSON format with no media file.
- Open a channel in Telegram Desktop
- Click the 3 dots at the corner
- Click “Export channel history”
- Uncheck all boxes
- Click the text after “Format” and choose “Machine-readable JSON”
- Generate the initial message list JSON use
python3 from_telegram_desktop_export_json.py < YOUR_EXPORTED_JSON.json > data.json
- Edit
template.html
with information about your own channel. - Run
python3 render_data.py
to build the web page. The final web page isindex.html
. - For further updates, edit
load_latest_from_tme.py
, replace the channel username afterCHANNEL_ID="
with your own one. Note: this only work for public channels. Run this script withpython3 load_latest_from_tme.py
to update the content. The script will warn you if auto update is failed due to more than 20 messages added since last update.