How hypnoticdo0g/rss-chan works
rss-chan is a self-hosted Telegram bot that monitors RSS subscriptions and posts new items to a configured chat. The main workflow starts the bot, registers owner-filtered commands, loads subscription state, then periodically checks feeds, formats new entries, and sends them to Telegram. Users can also list, fetch, subscribe, unsubscribe, and set per-feed templates. The excerpts show command, storage, formatting, and scheduling links; unsampled command details are represented at the handler-module level.
Main entry points: rsshandler.py RSS commands · __main__.py Bot startup · dbhandler.py PostgreSQL storage · utilhandler.py Template formatter
Components 10
Bot runtime
- Bot startup
bot/__main__.py - Bot configuration
bot/__init__.py
Feed operations
- RSS commands
bot/modules/rsshandler.py - Feed monitor
bot/modules/rsshandler.py - Feed parser
- Template formatter
bot/modules/utilhandler.py
Subscription state
- PostgreSQL storage
bot/modules/dbhandler.py - Subscription cache
bot/modules/dbhandler.py
Message delivery
- Telegram API
Other components
- Bot user
Connections 15
- Bot startup → RSS commands: initializes
bot/__main__.py - Bot startup → Bot configuration: uses updater
bot/__main__.py - Bot startup → Telegram API: starts polling
bot/__main__.py - Bot user → Telegram API: sends commands
README.md - Telegram API → RSS commands: dispatches
bot/modules/rsshandler.py - RSS commands → PostgreSQL storage: reads and writes
bot/modules/rsshandler.py - RSS commands → Feed parser: parses feeds
bot/modules/rsshandler.py - RSS commands → Template formatter: formats items
bot/modules/rsshandler.py - RSS commands → Subscription cache: lists subscriptions
bot/modules/rsshandler.py - RSS commands → Feed monitor: schedules
bot/modules/rsshandler.py - Feed monitor → Feed parser: parses feeds
bot/modules/rsshandler.py - Feed monitor → Template formatter: formats entries
bot/modules/rsshandler.py - Feed monitor → PostgreSQL storage: updates item state
bot/modules/rsshandler.py - Feed monitor → Telegram API: sends posts
bot/modules/rsshandler.py - PostgreSQL storage → Subscription cache: reloads
bot/modules/dbhandler.py