Skip to content

Telegram TUIA keyboard-driven Telegram client for the terminal

Two modifier chords in the whole application. Every action a message supports is a labelled chip on screen, not a shortcut you had to read about first.

Why tgt?

A terminal client you can use without learning it first.

Pre-1.0, and macOS is the platform that's actually been used

Release tarballs are built for macOS and Linux, on both Apple Silicon/Intel and x86_64/aarch64. brew install spechtlabs/tap/tgt, the install script, and a tarball off the releases page all work on either.

Linux needs glibc 2.39 or newer. Ubuntu 24.04+ and Debian 13 clear it; Debian 12 and Ubuntu 22.04 LTS don't. Building from source doesn't route around this, since TDLib ships only as a prebuilt library with the same requirement either way. See Installation for the full list.

Windows compiles and passes the test suite in CI, but ships no artifact at all. Its loader has no equivalent of the relocatable layout the other two rely on. Nobody has run the client on Linux or Windows day to day, so treat both as experimental outside of macOS, and please report what breaks.

What using it looks like

tgt: folders, a reply, a reaction, revealing a spoiler

Recorded with tgt --demo, which runs the real client against a scripted, offline chat history instead of a Telegram account. No real conversation was recorded or risked to make this. What you're watching: the chat list with real folder tabs and unread badges, opening a chat with a reply quote and a reaction already on screen, then selection mode walking up to a spoiler and revealing it with v. The photo shows as its text card rather than an inline image. That's on purpose: this player speaks no terminal graphics protocol, so a text card is what a plain terminal actually shows.

Press ↑ on an empty composer and the newest message highlights; the hint bar turns into a chip row for whatever that message supports. Below 100 columns the two panes collapse into a single-pane stack drawn by the same components, so nothing new has to be learned at a narrow width.

In v1, and not in v1

Working today: login by phone code or QR, 2FA passwords, chat list with real folder names and an archive, history with paging, sending, replies, edits, deletes, reactions, media upload and download with progress, inline images, search, and a command palette.

Deliberately out of scope for v1: multiple accounts, voice and video calls, secret chats.

Releases

Select your platform

v0.2.2

Bug Fixes

  • deps: bring the crates and the docs site's dependencies current (#19) (0820f19)
  • deps: move the telemetry stack to sentry 0.49 and OpenTelemetry 0.33 (#20) (2752015)

v0.2.1

Release notes

Features

  • ui: keyboard navigation that stops fighting the viewport (#10) (731667f)

Bug Fixes

  • docs: replace the hand-rolled cast player with the real one (#77) (d55eda6)

v0.2.0

Release notes

⚠ BREAKING CHANGES

  • the [telemetry] mode config key has been removed. A configuration file that still sets it will refuse to start, naming the file and the replacement. Replace mode = "off" with enabled = false, and mode = "vendor" or mode = "custom" with enabled = true. Crash reporting and a user's own OTLP collector are controlled separately by crash_reports and endpoint.

Features

  • app: add tgt --demo, an offline in-memory demo backend for recordings (9462afa)
  • app: show the composer's Sending -> Sent transition in the recording (8af78ee)
  • app: switch tgt --demo to a scripted FakeTd fixture, add the recording (2cef314)
  • remove the retired [telemetry] mode config key (f49c0fa)

Bug Fixes

  • docs: make the deploy build actually run mise run docs-build (c843336)
  • install: replace the wrong libc++ warning with the real glibc floor (d8a4646)
  • release: pass the release PR JSON as data, not as shell syntax (88f28ae)

v0.1.7

Release notes

Bug Fixes

  • release: stop a repair from downgrading Homebrew, guard against stale runs (af28cb2)

v0.1.6

Release notes

Features

  • forget the signed-out account when the TDLib client restarts (deb3292)
  • update: add --force, and refuse to walk a version backwards (ccb5a6b)

Bug Fixes

  • core: surface failed logout and failed external-open as toasts (5c24aff)
  • release: a repair completes a release instead of rebuilding it (9542c26)
  • update: keep advice readable, and stop an update stealing the PATH link (58cc556)
  • update: resolve the real tree when tgt is run through a symlink (9362054)

Contributors

Your contributions matter. Here's to everyone who's helped bring this to life.