ComboSender Bot for managing and sending combo files between Telegram channels using Telethon and python-telegram-bot. Features combo filtering, dynamic channel management, rights emails insertion, detailed logging, and automatic temp file cleanup.
- Receive combo files from specified Telegram channels.
- Send filtered combo files to output channels.
- Automatically insert rights emails into sent files.
- Dynamically update Telethon event listeners when channels are added/removed.
- Detailed logging for line count, emails, and filtered combos.
- Automatic deletion of temp files after processing.
- Access protection via admin IDs.
- Handles asyncio exceptions to hide error messages on shutdown.
- Python 3.11+
- Telethon
- python-telegram-bot
- All dependencies in
requirements.txt
pip install -r requirements.txt
python main.pymain.py: Bot entry point and event management.src/bot/handlers.py: Channel management, file handling, filtering, logging.src/session/telethon_session.py: Telethon session setup.src/data/database.py: Database management.src/utils/checker.py: Combo filtering and validation functions.config.py: Bot configuration and admin IDs.
- Add your admin IDs in
config.py. - Only registered input channels can send files to the bot.
- Files are sent only if the filtered combo count is greater than 100.
MIT — see LICENSE