Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blueset/polls_channel_history
Polls Channel Messages Log
https://github.com/blueset/polls_channel_history
github-actions telegram telegram-channel
Last synced: 4 days ago
JSON representation
Polls Channel Messages Log
- Host: GitHub
- URL: https://github.com/blueset/polls_channel_history
- Owner: blueset
- License: mit
- Created: 2020-11-29T06:19:25.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-10T01:20:51.000Z (over 1 year ago)
- Last Synced: 2025-01-10T16:22:51.230Z (6 days ago)
- Topics: github-actions, telegram, telegram-channel
- Language: HTML
- Homepage: https://blueset.github.io/polls_channel_history/
- Size: 18.3 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Polls Channel Messages Log
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.## Details
- Web: https://blueset.github.io/polls_channel_history
- Updated daily via GitHub Actions
- Code license: MIT## How to use this for your own channel?
1. Clone or download this repository locally.
1. Install Python 3.
2. Install all Python dependency packages via `python3 -m pip install -r requirements.txt`.
1. 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”
1. Generate the initial message list JSON use `python3 from_telegram_desktop_export_json.py < YOUR_EXPORTED_JSON.json > data.json`
1. Edit `template.html` with information about your own channel.
1. Run `python3 render_data.py` to build the web page. The final web page is `index.html`.
1. For further updates, edit `load_latest_from_tme.py`, replace the channel username after `CHANNEL_ID="` with your own one. **Note:** this only work for public channels. Run this script with `python3 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.