Skip to main content

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.

  1. Create a separate Telegram account to subscribe to various channels available only as Telegram feeds (yep, they exist!)
  2. Convert all of them to RSS feeds using this app
  3. Be in power of your information consumption with a single place to get it - your RSS reader!

Quick start

Docker

  1. Get api_id an api_hash at https://my.telegram.org
  2. 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: {}
    
  3. Run docker compose up
  4. Go to http://127.0.0.1:3042
  5. Scan the QR code with your Telegram app
    1. If there is an AUTH_ERROR, restart the docker compose stack
  6. Give it a few seconds to log in
  7. Get redirected to a page with a list of all your chats available as RSS feeds.
    1. If the list is incomplete, give it a few minutes on the first start to generate the RSS feeds.
    2. Subsequent updates should be much faster!

Bare bone Python

  1. pip install telegram-to-rss
  2. Get api_id an api_hash at https://my.telegram.org
  3. Run in your terminal TG_API_ID=api_id TG_API_HASH=api_hash BASE_URL=server_url python telegram_to_rss
    1. Example: TG_API_ID=00000000 TG_API_HASH=7w8sdsd3g334r333refdwd3qqrwe BASE_URL=example.myserver.com python telegram_to_rss
  4. If you have 2FA enabled on your Telegram account set TG_PASSWORD with 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
  5. Go to http://127.0.0.1:5000
  6. Scan the QR code with your Telegram app
    1. If there is an AUTH_ERROR, restart telegram-to-rss
  7. Give it a few seconds to log in
  8. Get redirected to a page with a list of all your chats available as RSS feeds.
    1. If the list is incomplete, give it a few minutes on the first start to generate the RSS feeds.
    2. 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 account
  • BIND - host:port to bind to on the server. Default: 127.0.0.1:3042
  • LOGLEVEL - log level for the app (supported values). Default: INFO
  • DATA_DIR - path to store the database, RSS feeds and other static files. Default: user_data_dir from platformdirs
  • FEED_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.

Metadata

Release files for telegram-to-rss 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telegram-to-rss 0.3.0
File Size Uploaded Provenance Actions
telegram_to_rss-0.3.0.tar.gz 12.1 kB Without provenance Details for telegram_to_rss-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for telegram-to-rss 0.3.0
File Interpreter ABI Platform Actions
telegram_to_rss-0.3.0-py3-none-any.whl Python 3 none any Details for telegram_to_rss-0.3.0-py3-none-any.whl

Total release size: 26.7 kB

Release files / telegram_to_rss-0.3.0.tar.gz

Download URL telegram_to_rss-0.3.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2b5412be3b8496df0e0b694bc9521fba01c7c1689173194fdb78ac9c945430ab
BLAKE2b-256 checksum
How to use checksums
09db0b96f230a2b6149568d3a3c4b0f7567b4ed43465503be2b999b45759b0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

Release files / telegram_to_rss-0.3.0-py3-none-any.whl

Download URL telegram_to_rss-0.3.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
482499b8dedd84c4efb39d3c6e03339e5c5d0e87355811aa28824b018fd52e6e
BLAKE2b-256 checksum
How to use checksums
a8888c13d5b777ddc4fd5769a65ad6b3235bc8b6406a5300eeb0bf12bdb0fbf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

Security for telegram-to-rss 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page