Back to projects
An email client inside Telegram
Telegram bots

An email client inside Telegram

A full email client as a Telegram Mini App: IMAP, push notifications, and Sieve filter management.

Challenge. Bring email into the messenger: read, reply, and tidy the inbox without switching apps — with real push, not periodic polling.

Approach. I built it as a Mini App with a serious backend — proper work with mail protocols, not a simplified reader.

Solution. Node.js + grammY + Express (mini-app backend), imapflow for folder navigation/reading/replying/deleting, real-time push via IMAP IDLE, creating and managing Sieve filters (RFC 5804 ManageSieve) for automation rules, HTML and plain-text rendering, search and pagination, and auth via HMAC-SHA256 over Telegram WebApp initData.

Result. A responsive email client right inside Telegram for mobile-first scenarios, with instant notifications and server-side filtering rules — no third-party mail apps.

Related work