How devgaganin/auto-forward-bot-v2 works
Project type and purpose
• This is a single-process, Python-based Telegram bot (“Advance Content Saver Bot”) whose job is to listen for messages/files in channels (restricted or not) and forward or clone them for authenticated users.
• The README describes features such as forwarding public/private channel messages, batch-cloning posts by link (up to 10K), broadcasting, stats, and various management commands.
File structure
Top‐level files:
• Dockerfile, Procfile, heroku.yml, app.json, start.sh – deployment artifacts for Docker, Heroku, or VPS
• config.py – runtime configuration (API keys, DB URIs, etc.)
• logging.conf – logging configuration
• database.py – persistence layer (e.g., SQLite/Postgres access, schemas)
• bot.py – Telegram client setup (long‐polling or webhook) and dispatcher initialization
• main.py – entry point: loads config, sets up logging, connects DB, starts the bot
• translation.py – internationalization/resource strings
• plugins/ – plugin modules, each implementing one or more command handlers (broadcast.py, forward logic in commands.py, settings.py, etc.)
• requirements.txt – Python dependencies
README for additional insights
• Confirms use of Telegram Bot API, user authentication requirements, batch processing via a /batch command.
• Deployment on VPS or Heroku; shows need to configure dynos (Procfile), env vars (config.py), and link GitHub → Heroku.