How denis-rubtsov/wolfsquotes works
Vlk is a Telegram quote bot. Users browse and rate quotes, submit suggestions for admin moderation, and—when enabled—request AI-generated quotes; admins also manage the quote collection. BotService handles commands, callbacks, moderation and Telegram Stars payments, while InlineHandler serves inline queries. QuoteService and AiQuoteService provide quote logic and generation; DataService persists bot state in JSON. The graph follows the README and shown source/index references; unsampled handler details are represented at the BotService level.
Main entry points: BotService.cs Commands and callbacks · DataService.cs Data access · Program.cs Application setup · InlineHandler.cs Inline queries
Components 18
Telegram interaction
- Commands and callbacks
Vlk/BotService.cs - Inline queries
Vlk/InlineHandler.cs - Conversation state
Vlk/UserState.cs - Application setup
Vlk/Program.cs
Quotes and moderation
- Quote operations
Vlk/QuoteService.cs - Suggestions and moderation
Vlk/BotService.cs - Suggestion model
Vlk/Suggestion.cs - Quote ratings
Vlk/QuoteRating.cs
AI and payments
- AI quote generation
Vlk/AiQuoteService.cs - Generation rate limit
Vlk/RateLimiter.cs - Stars payments
Vlk/BotService.cs
State and storage
- Data access
Vlk/DataService.cs - JSON data file
- Bot data model
Vlk/BotData.cs
Other components
- Users
- Admins
- Telegram API
- OpenAI Chat API
Connections 29
- Users → Commands and callbacks: send commands
README.md - Admins → Commands and callbacks: manage bot
README.md - Users → Inline queries: query inline
README.md - Commands and callbacks → Telegram API: send responses
Vlk/BotService.cs - Inline queries → Telegram API: answer queries
Vlk/InlineHandler.cs - Commands and callbacks → Quote operations: request quotes
Vlk/BotService.cs - Commands and callbacks → Data access: read and mutate
Vlk/BotService.cs - Commands and callbacks → Suggestions and moderation: process suggestions
README.md - Inline queries → Data access: read quotes
Vlk/InlineHandler.cs - Inline queries → AI quote generation: request generation
Vlk/InlineHandler.cs - Commands and callbacks → AI quote generation: request generation
Vlk/BotService.cs - Commands and callbacks → Generation rate limit: check allowance
Vlk/BotService.cs - Inline queries → Generation rate limit: check allowance
Vlk/InlineHandler.cs - Commands and callbacks → Stars payments: handle payments
README.md - Stars payments → Telegram API: process Stars
Vlk/BotService.cs - Commands and callbacks → Conversation state: track conversation
Vlk/BotService.cs - Quote operations → Data access: read and rate
Vlk/QuoteService.cs - AI quote generation → Data access: read examples
Vlk/AiQuoteService.cs - AI quote generation → OpenAI Chat API: complete chat
Vlk/AiQuoteService.cs - Data access → JSON data file: load and save
Vlk/DataService.cs - Data access → Bot data model: maintain
Vlk/DataService.cs - Bot data model → Suggestion model: stores
Vlk/BotData.cs - Bot data model → Quote ratings: stores
Vlk/BotData.cs - Application setup → Data access: constructs
Vlk/Program.cs - Application setup → Quote operations: constructs
Vlk/Program.cs - Application setup → AI quote generation: constructs
Vlk/Program.cs - Application setup → Generation rate limit: constructs
Vlk/Program.cs - Application setup → Inline queries: constructs
Vlk/Program.cs - Application setup → Commands and callbacks: starts service
Vlk/Program.cs