How electronic-mango/rss-reader-telegram-bot works
This is an RSS-subscription Telegram bot. Users add feeds from configured feed types, inspect or remove subscriptions, and receive updates as the bot checks feeds and sends new entries. The graph preserves command handling, feed retrieval/parsing, update delivery, and persistence as separate stages. Several edges are supported by the SOURCE INDEX’s import references; broader update and delivery behavior is documented in the README. Unsampled subsystems are represented only where the tree and documentation establish their role.
Main entry points: telegram_bot.py Bot registration · update_checker.py Update checker · add.py Add subscription · reader.py Feed retrieval
Components 19
Telegram interaction
- Bot startup
src/main/main.py - Bot registration
src/main/bot/telegram_bot.py - Core commands
src/main/bot/command - Add subscription
src/main/bot/command/add.py - Browse subscriptions
src/main/bot/command/subs/handler.py - Subscription query data
src/main/bot/command/subs/query_data.py - User access filter
src/main/bot/user_filter.py - Configuration
src/main/settings.py
Feed processing
- RSS feed sources
- Feed retrieval
src/main/feed/reader.py - Entry formatting
src/main/feed/parser.py - Feed data types
src/main/feed/types.py
Update delivery
- Update checker
src/main/bot/update_checker.py - Message sender
src/main/bot/sender.py
Subscription storage
- MongoDB
- Database client
src/main/db/client.py - Subscription operations
src/main/db/wrapper.py
Other components
- Telegram user
- Telegram platform
Connections 20
- Telegram user → Telegram platform: sends commands
README.md - Telegram platform → Bot registration: delivers updates
src/main/bot/telegram_bot.py - Bot startup → Configuration: loads configuration
src/main/main.py - Bot startup → Bot registration: starts
src/main/main.py - Bot registration → Core commands: registers handlers
src/main/bot/telegram_bot.py - Bot registration → Add subscription: registers
src/main/bot/telegram_bot.py - Bot registration → Browse subscriptions: registers
src/main/bot/telegram_bot.py - Add subscription → User access filter: filters users
src/main/bot/command/add.py - Browse subscriptions → Subscription query data: routes callback data
src/main/bot/command/subs/handler.py - Add subscription → Feed retrieval: retrieves and validates
src/main/bot/command/add.py - Add subscription → Subscription operations: checks and stores
src/main/bot/command/add.py - Feed retrieval → RSS feed sources: fetches RSS
src/main/feed/reader.py - Feed retrieval → Feed data types: uses
src/main/feed/reader.py - Update checker → Feed retrieval: checks feeds
src/main/bot/update_checker.py - Update checker → Entry formatting: parses entries
src/main/bot/update_checker.py - Update checker → Subscription operations: reads and updates
src/main/bot/update_checker.py - Update checker → Message sender: dispatches updates
src/main/bot/update_checker.py - Message sender → Telegram platform: sends messages
README.md - Subscription operations → Database client: delegates database operations
src/main/db/wrapper.py - Database client → MongoDB: reads and writes
src/main/db/client.py