Telegram Email-to-Channel Router

Customer: AI | Published: 07.10.2025
Бюджет: 750 $

I need a Telegram bot that takes incoming HTML emails, extracts the readable body, then publishes that content in the right Telegram channel purely by looking at specific keywords I will provide. If the email carries any attachments, the bot should forward them to the same channel as files, preserving original names and formats. You are free to build in Python (aiogram, telebot, etc.) or Node.js if that is your comfort zone, as long as the finished code is well-documented and can run on a small VPS with minimal dependencies. The mapping table of keywords → channel IDs has to be easy for me to expand later, ideally via a simple JSON or YAML file. Core acceptance criteria • Successfully parses typical HTML email bodies (inline CSS, basic tables, links) and strips out tracking pixels or noisy inline images. • Detects my keyword set case-insensitively and routes the message to the matching channel within a second. • Forwards every attachment it finds as a file in Telegram, retaining filename and MIME type. • Logs each event (timestamp, detected keyword, channel ID, subject line) to a local SQLite or flat-file log for audit. • Includes a quick setup script plus a README that walks me through generating the bot token, setting environment variables and creating new keyword rules.