No project description provided
Project description
telegram-to-rss
Generate an RSS feed from your Telegram chats. You digital minimalism friend.
How to get the most of it
Digital minimalism is a strategy to help people optimize their use of technology and keep from being overwhelmed by it.
- Create a separate Telegram account to subscribe to various channels available only as Telegram feeds (yep, they exist!)
- Convert all of them to RSS feeds using this app
- Be in power of your information consumption with a single place to get it - your RSS reader!
Quick start
Docker
- Get
api_idanapi_hashat https://my.telegram.org - Create a docker compose file and replace the environment variables (see Configuration for details)
services: telegram-to-rss: image: aigoncharov/telegram-to-rss:latest container_name: telegram-to-rss restart: always environment: - TG_API_ID=REPLACE_ME - TG_API_HASH=REPLACE_ME - TG_PASSWORD=REPLACE_ME - BASE_URL=REPLACE_ME ports: - 3042:3042 volumes: - data:/data volumes: data: null networks: {}
- Run
docker compose up - Go to
http://127.0.0.1:3042 - Scan the QR code with your Telegram app
- If there is an AUTH_ERROR, restart the docker compose stack
- Give it a few seconds to log in
- Get redirected to a page with a list of all your chats available as RSS feeds.
- If the list is incomplete, give it a few minutes on the first start to generate the RSS feeds.
- Subsequent updates should be much faster!
Bare bone Python
pip install telegram-to-rss- Get
api_idanapi_hashat https://my.telegram.org - Run in your terminal
TG_API_ID=api_id TG_API_HASH=api_hash BASE_URL=server_url python telegram_to_rss- Example:
TG_API_ID=00000000 TG_API_HASH=7w8sdsd3g334r333refdwd3qqrwe BASE_URL=example.myserver.com python telegram_to_rss
- Example:
- If you have 2FA enabled on your Telegram account set
TG_PASSWORDwith your account password as well:TG_API_ID=api_id TG_API_HASH=api_hash TG_PASSWORD=your_password BASE_URL=server_url python telegram_to_rss - Go to
http://127.0.0.1:5000 - Scan the QR code with your Telegram app
- If there is an AUTH_ERROR, restart
telegram-to-rss
- If there is an AUTH_ERROR, restart
- Give it a few seconds to log in
- Get redirected to a page with a list of all your chats available as RSS feeds.
- If the list is incomplete, give it a few minutes on the first start to generate the RSS feeds.
- Subsequent updates should be much faster!
Configuration
Available environment variables (* marks required ones):
- *
TG_API_ID- api_id from https://my.telegram.org - *
TG_API_HASH- api_hash from https://my.telegram.org - *
BASE_URL- address of your server that hosts this app, used in RSS feeds to correctly set image addresses TG_PASSWORD- your telegram password, required if 2fa is enabled on the accountBIND-host:portto bind to on the server. Default:127.0.0.1:3042LOGLEVEL- log level for the app (supported values). Default:INFODATA_DIR- path to store the database, RSS feeds and other static files. Default:user_data_dirfrom platformdirsFEED_SIZE- size of the RSS feed. When your RSS feed grows larger than the limit, older entries are going to be discarded. Default: 200.INITIAL_FEED_SIZE- number of messages we fetch for any new feed on the first run. Default value: 50.UPDATE_INTERVAL- how often the app should fetch new messages from Telegram and regenerate RSS feeds (in seconds). Default: 3600.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file telegram_to_rss-0.3.0.tar.gz.
File metadata
- Download URL: telegram_to_rss-0.3.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b5412be3b8496df0e0b694bc9521fba01c7c1689173194fdb78ac9c945430ab
|
|
| MD5 |
2d7c41f38f7121c5877f60fee02a527a
|
|
| BLAKE2b-256 |
09db0b96f230a2b6149568d3a3c4b0f7567b4ed43465503be2b999b45759b0e3
|
File details
Details for the file telegram_to_rss-0.3.0-py3-none-any.whl.
File metadata
- Download URL: telegram_to_rss-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
482499b8dedd84c4efb39d3c6e03339e5c5d0e87355811aa28824b018fd52e6e
|
|
| MD5 |
1dd2ed521d54620fc7e5af7327012f47
|
|
| BLAKE2b-256 |
a8888c13d5b777ddc4fd5769a65ad6b3235bc8b6406a5300eeb0bf12bdb0fbf8
|