Gram.js & WebSockets · 2024
Entegram
A Telegram-based CRM platform built on Node.js, Gram.js, MongoDB, and WebSockets, enabling support and sales teams to manage customer conversations with custom chat categories, ticket assignment, and real-time messaging sync.

Gram.js Telegram MTProto API
Direct interaction with Telegram MTProto protocol via Gram.js for reliable bi-directional chat streaming and event listeners.
Custom Chat Categorization
Dynamic tag-based pipeline categorizing incoming client chats into VIP, Lead, Support, and Custom team workflows.
Real-Time WebSockets Engine
Bi-directional socket connections delivering incoming messages and agent typing events instantaneously to the web UI.
System Architecture
Engineered low-latency Telegram MTProto client gateway in Node.js using the Gram.js library.
Configured WebSocket streaming server relaying real-time messages between Telegram and support team dashboards.
Built custom categorization engine enabling team leads to tag, filter, and assign active conversations.
Designed high-performance MongoDB schemas tracking chat threads, agent assignments, and message logs.
Implemented token security, rate limiting, and session persistence to ensure uninterrupted messaging connection.
Integrated rich media support for images, voice notes, and document attachments with preview capabilities.