How madhu-maneesh/toptech works
TopTech Bot is a Spring Boot service with two entry points: Telegram long polling and HTTP endpoints. Telegram commands are handled by the bot, which calls NewsService for news and sends the response back; HTTP /news also calls that service. The README describes Hacker News, but the sampled NewsService fetches and parses Google News RSS feeds, so the graph reflects the sampled implementation. Some internal methods are omitted from the excerpts; edges are limited to relationships visible in the excerpts or README.
Main entry points: botService.java Telegram handler · botconfig.java Bot configuration · NewsService.java News service · NewsController.java News endpoint
Components 9
Application entry points
- Spring Boot app
src/main/java/com/toptech/toptech/ToptechApplication.java - Bot configuration
src/main/java/com/toptech/toptech/Confing/botconfig.java - Telegram handler
src/main/java/com/toptech/toptech/Service/botService.java - News endpoint
src/main/java/com/toptech/toptech/Controller/NewsController.java
News retrieval
- News service
src/main/java/com/toptech/toptech/Service/NewsService.java
External integrations
- Google News RSS
- Telegram API
Other components
- Telegram user
- HTTP client
Connections 9
- Telegram user → Telegram handler: sends commands
README.md - Bot configuration → Telegram handler: creates bot
src/main/java/com/toptech/toptech/Confing/botconfig.java - Bot configuration → Telegram API: registers bot
src/main/java/com/toptech/toptech/Confing/botconfig.java - Telegram handler → News service: requests stories
src/main/java/com/toptech/toptech/Service/botService.java - Telegram handler → Telegram API: sends replies
src/main/java/com/toptech/toptech/Service/botService.java - HTTP client → News endpoint: requests news
src/main/java/com/toptech/toptech/Controller/NewsController.java - News endpoint → News service: requests stories
src/main/java/com/toptech/toptech/Controller/NewsController.java - News service → Google News RSS: fetches feeds
src/main/java/com/toptech/toptech/Service/NewsService.java - Spring Boot app → Bot configuration: starts context