Design Telegram

Hard60 min
1 / 30
understanding3 min read

Telegram product surface and interview framing

What Telegram is and why cloud-first sync defines it

Telegram product surface and interview framing

Telegram is a cloud-first messaging platform, and the fact that defines the architecture is exactly that, cloud-first. Unlike a privacy-first messenger, regular Telegram chats are stored on the server and synced to all of a user's devices, so a new phone instantly sees the full history. The signature mechanism is a per-account update sequence: every change to an account's state (a new message, an edit, a read) gets a monotonically increasing number called pts, and a device stays in sync by tracking its local pts and asking the server for everything since, via getDifference. Secret chats are the opt-in end-to-end-encrypted exception, device-to-device and not cloud-stored.

The product surface is broad: one-to-one and group chats, supergroups (very large groups), channels (one-to-many broadcast to unlimited subscribers), bots (a first-class automation platform), and media with a CDN. So the spine is the MTProto client protocol carrying RPC calls, a per-account pts update stream with getDifference for sync, a write path that assigns pts and orders updates, channel broadcast fan-out, and a media pipeline. State the framing up front: Telegram is cloud-first sync built on a per-account update sequence, with channels and bots as scale and platform features.

Key Highlights

  • Cloud-first: regular chats stored on the server, synced to all devices
  • Per-account update sequence (pts) plus getDifference is the sync mechanism
  • Secret chats are the opt-in end-to-end-encrypted, device-to-device exception
  • Surface: chats, supergroups, channels (unlimited broadcast), bots, media
Interview move
Open by naming cloud-first sync via a per-account pts update sequence and getDifference. That mechanism is what makes Telegram different from a per-thread or E2E messenger.
Avoid
Treating Telegram like an E2E-first messenger. Regular chats are server-stored and cloud-synced; only secret chats are end-to-end-encrypted.

Section Rescue Kit

Buzzwords to use:

pts (point sequence)MTProto

Safe statements:

  • "Telegram is cloud-first sync built on a per-account pts update sequence."
  • "Devices sync by tracking a local pts and calling getDifference for everything since."
Design Telegram - System Design | WinJob | WinJob