How abedjoulany/aliexpress-deals works
This repository is an AliExpress affiliate-link Telegram bot. A user sends a product URL; the bot detects and resolves it, obtains product details, generates offer-specific affiliate links, formats a response, and sends it back through Telegram. The graph separates message handling, URL and offer processing, product/API work, and shared runtime support. Relationships for unsampled modules are limited to those supported by the README or SOURCE INDEX; the graph does not assume unshown internal calls.
Main entry points: telegram_bot.py Message handlers · main.py Application setup · aliexpress_client.py AliExpress client · product_service.py Product service
Components 16
Telegram interaction
- Message handlers
telegram_bot.py - Response formatting
message_formatter.py
URL and offers
- URL processing
url_processor.py - Offer strategies
offers.py - Offer configuration
constants.py
Product and API
- Product service
product_service.py - AliExpress client
aliexpress_client.py - API error types
aliexpress_errors.py - Product utilities
aliexpress_utils.py - IOP SDK transport
iop/base.py
Runtime support
- Application setup
main.py - Expiring caches
cache_manager.py - Keep-alive server
keep_alive.py
Other components
- Chat user
- Telegram platform
- AliExpress Affiliate API
Connections 23
- Chat user → Message handlers: sends message
README.md - Message handlers → URL processing: resolves links
telegram_bot.py - Message handlers → Product service: requests product
telegram_bot.py - Message handlers → Response formatting: formats response
telegram_bot.py - Message handlers → Telegram platform: sends response
telegram_bot.py - Application setup → Message handlers: starts bot
main.py - Application setup → Product service: constructs service
main.py - Application setup → URL processing: constructs processor
main.py - Application setup → AliExpress client: constructs client
main.py - Application setup → Expiring caches: constructs manager
main.py - Application setup → Keep-alive server: starts server
main.py - URL processing → Expiring caches: reads and writes
url_processor.py - URL processing → Offer strategies: wraps offer URLs
url_processor.py - Offer configuration → Offer strategies: defines offers
constants.py - Product service → AliExpress client: fetches product
product_service.py - Product service → Product utilities: scrapes fallback
product_service.py - Product service → Offer configuration: selects offers
product_service.py - AliExpress client → Expiring caches: uses link cache
aliexpress_client.py - AliExpress client → API error types: classifies failures
aliexpress_client.py - AliExpress client → IOP SDK transport: executes requests
- IOP SDK transport → AliExpress Affiliate API: sends API request
- AliExpress client → AliExpress Affiliate API: requests product and links
README.md - Message handlers → Expiring caches: schedules cleanup
telegram_bot.py