How ghashtag/neuro-blogger-telegraf-bot works
Client Layer
• Telegram Bot Interface
• User Interaction Points (Commands & Scenes)
Application Core
• Bot Service Layer
• Command Handler System
• Scene Management System
• Price Management System
External Services Integration
• OpenAI Integration
• ElevenLabs Integration
• Replicate Integration
• SyncLabs Integration
Data Layer
• Supabase Database
• File Storage System
Client Layer
• It to the Command Handler and Scene Management components
• Command Management (/src/commands)
• Scene Management (/src/scenes)
• Price Management (/src/price)
• Service Layer (/src/services)
External Services Section
• OpenAI (text and image generation)
• ElevenLabs (voice generation)
• Replicate (video generation)
• SyncLabs (lip sync)
Data Layer
• Supabase at the bottom
• Connections to:
• User data management
• Balance management
• Model storage
• File storage
Flow Connections
• Blue: User interactions
• Green: Data operations
• Red: External API calls
Processing Components
• Image processing
• Voice processing
• Video generation
• Text processing
Security Layer
• Authentication handling
• Subscription verification
• Balance checking mechanisms
Specific Implementation Details:
Use clear labels for each component
• Command names from /src/commands
• Scene names from /src/scenes
• Service names from /src/services
Related functionality
• Image-related features
• Voice-related features
• Video-related features
• Text-related features
Error handling paths
• Error handlers from /src/helpers/error
• Retry mechanisms
• Fallback paths
Configuration management
• Environment configuration
• Docker configuration
• Deployment settings
• User Interface Layer (Telegram Bot)
• Business Logic Layer (Commands & Scenes)
• Service Layer (External APIs)
• Data Access Layer (Supabase)
Use standardized symbols:
• Rectangles for services and components
• Diamonds for decision points
• Clouds for external services
Remember to:
• Use consistent styling
• Brief descriptions for complex components
• Both synchronous and asynchronous flows
• Scaling points
• Critical paths