How waleednjlaty/waleed-zone-bot works
Waleed Zone Bot is a Telegram community catalog for apps and games. Users browse, search, favorite, request, and download published entries; administrators manage and publish catalog entries, while Telegram file copying supports delivery without downloading APK bytes to the server. Separate capabilities include SteamRIP link resolution, optional image hosting, and group moderation. The graph follows documented features and shown source references; unsampled modules are included where the README establishes their role, but uncertain internal connections are omitted.
Main entry points: repositories.py Repositories · applications.py User catalog flows · download_service.py Download resolver · admin.py Admin workflows
Components 25
Bot interactions
- Admin workflows
app/handlers/admin.py - User catalog flows
app/handlers/applications.py - App requests
app/handlers/requests.py - Catalog search
app/handlers/search.py - Group moderation
app/handlers/group.py - User keyboards
app/keyboards/user.py
Catalog workflows
- Upload flow
app/handlers/upload.py - SteamRIP flow
app/handlers/steamrip.py - Catalog rules
app/utils/catalog.py - Message formatting
app/utils/text.py - Website links
app/utils/website.py - Download resolver
app/services/download_service.py - Telegram file copy
app/services/upload_service.py - Moderation service
app/services/group_service.py - Image migration
app/services/image_migration.py - Admin authorization
app/utils/owner_guard.py
Data layer
- Repositories
database/repositories.py - Catalog models
database/models.py - Database sessions
database/database.py
External services
- SteamRIP extraction
integrations/steamrip_extractor.py - Public HTTP client
integrations/public_http.py - ImgBB hosting
integrations/imgbb.py - Telegram API
integrations/telegram.py
Other components
- Telegram user
- SQLite / PostgreSQL
Connections 30
- Telegram user → User catalog flows: browses
- Telegram user → Catalog search: searches
- Telegram user → App requests: requests apps
- Telegram user → Group moderation: interacts in group
- User catalog flows → Repositories: queries catalog
app/handlers/applications.py - User catalog flows → User keyboards: builds menus
app/handlers/applications.py - User catalog flows → Download resolver: resolves download
app/handlers/applications.py - Catalog search → Repositories: queries catalog
app/handlers/search.py - Admin workflows → Repositories: manages entries
app/handlers/admin.py - Admin workflows → Admin authorization: checks access
app/handlers/admin.py - Admin workflows → Upload flow: starts uploads
app/handlers/admin.py - Admin workflows → Image migration: migrates images
app/handlers/admin.py - Upload flow → Telegram file copy: copies files
app/handlers/upload.py - Upload flow → Repositories: stores entry
app/handlers/upload.py - Telegram file copy → Telegram API: copies message
app/services/upload_service.py - Download resolver → Repositories: reads sources
app/services/download_service.py - Download resolver → SteamRIP extraction: resolves links
app/services/download_service.py - Download resolver → Public HTTP client: fetches URLs
app/services/download_service.py - Download resolver → Website links: formats fallback
app/services/download_service.py - SteamRIP flow → SteamRIP extraction: extracts links
app/handlers/steamrip.py - SteamRIP flow → Repositories: reads catalog
app/handlers/steamrip.py - SteamRIP extraction → Public HTTP client: fetches pages
integrations/steamrip_extractor.py - Image migration → ImgBB hosting: hosts images
app/services/image_migration.py - Moderation service → Repositories: tracks moderation
app/services/group_service.py - Moderation service → Telegram API: moderates members
app/services/group_service.py - Repositories → Catalog models: queries records
database/repositories.py - Database sessions → Catalog models: creates schema
database/database.py - Database sessions → SQLite / PostgreSQL: connects
- Catalog rules → User catalog flows: categorizes entries
app/handlers/applications.py - Message formatting → User catalog flows: formats cards
app/handlers/applications.py