How miiloudz/aliexpress-affiliate-telegram-bot works
Project type and purpose
• This is a small‐scale Telegram chatbot (“AliExpress Affiliate Telegram BOT”) written in Python.
• Its primary function is to receive commands from end users over Telegram, call the AliExpress Affiliate API to fetch product links and details, and send the results back to the user.
File structure
• Top level:
• .github/workflows/fly-deploy.yml → CI/CD pipeline for deploying the bot (presumably to Fly.io or a similar host)
• bot.py → Main bot logic: initializes the Telegram client, listens for commands, calls the API wrapper, formats responses.
• keep_alive.py → A minimal web server or ping responder to prevent idling on certain hosting platforms.
• requirements.txt → Dependencies: telebot, python-aliexpress-api, etc.
• No database or persistent storage directories—this is a stateless bot relying solely on external APIs and Telegram.
README for additional insights
• It lists out the bot’s features (get_affiliate_links, get_promotion_products, etc.).
• It requires environment variables or config for: Telegram Bot Token, AliExpress API key, and an optional tracking ID.
• Installation plus deployment hints (CI workflow, keep_alive for uptime).
Final recommendation
• Every file’s runtime role: “bot.py” for commands, “keep_alive.py” for uptime, “fly-deploy.yml” for CI/CD.