A comprehensive technical reference for the 6-layer microservice architecture of Teamgram Server, designed for developers building Telegram-compatible messaging systems.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install teamgram-architecture
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install teamgram-architecture using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides a deep-dive into the Teamgram Server architecture, a high-performance, Telegram/MTProto compatible backend. It outlines a sophisticated 6-layer system leveraging go-zero, gRPC, and Kafka for scalable messaging. By integrating this knowledge into your AI agent via Openclaw Skills, you gain immediate access to the structural blueprints of 11 core services, ranging from session management to media handling and distributed file systems.
As a documentation-only asset within the Openclaw Skills ecosystem, no binary installation or executable environment is required. Developers should use this as a primary reference for architectural planning and microservice implementation.
# To explore the source code referenced by this skill:
git clone https://github.com/teamgram/teamgram-server
The architecture is organized into a hierarchical taxonomy of services and protocols:
| Component | Protocol / Technology | Discovery Key |
|---|---|---|
| Gateway Layer | MTProto (TCP/WS/HTTP) | interface.gateway |
| Session Layer | gRPC / Session Aggregation | interface.session |
| Business Logic | BFF / 27 RPC Modules | bff.bff |
| Core Services | User/Chat/Dialog Helpers | service.biz_service |
| Messaging | Kafka (Inbox-T / Sync-T) | messenger.msg |
| Storage | Minio / DFS | service.dfs |
Loading
A five-lens ethical decision engine that provides sovereign AI agents with the judgment to evaluate risks and escalate critical actions to humans.

A comprehensive integration that allows AI agents to access dozens of AI providers for text, image, video, and audio analysis through a single unified interface.

A professional-grade toolkit for developing, bundling, and sharing complex React-based Claude.ai artifacts with modern styling.

A comprehensive backup and restoration utility designed to safeguard OpenClaw configurations, credentials, and agent workspaces.

A comprehensive Python-powered CLI toolkit for validating, formatting, and manipulating JSON data with precision.

A powerful CLI wrapper for the Miro Platform API, enabling seamless board management, team organization, and automated data exports directly from your terminal.








































