detached 9a32f9c

docs(readme): document /telegram bridge + split from standalone daemon

README: the Telegram section now leads with "two ways to run it"
and splits into a "From inside the TUI" subsection (covering
/telegram connect/disconnect/status, the you:/zot: mirroring
convention, the · tg · status tag, and the refuse-when-daemon-
running guard) followed by the existing "Standalone daemon"
subsection (unchanged content, renamed heading).

No code change; description only.
commit
9a32f9cf5c02d93de3a8d143ad0b0d75a1174ee0
author
patriceckhart · · 2026-04-20 07:35 UTC
parent
625c238
signature
unsigned
refs
tag: v0.0.56
1 file · +17 -1
M README.md +17 -1
@@ -345,7 +345,23 @@ See [docs/skills.md](docs/skills.md) for the frontmatter fields, authoring tips,
345345
346346 ## Telegram bot (bridge)
347347
348-zot can run as a telegram bot so you can DM it from your phone. It's a built-in subcommand, not a plugin:
348+zot can run as a telegram bot so you can DM it from your phone. Two ways to run it: **from inside the TUI** (the running session mirrors into Telegram) or **as a standalone background daemon** (a headless bot with its own independent agent).
349+
350+### From inside the TUI
351+
352+Type `/telegram` in the running TUI to open a picker with **connect**, **disconnect**, and **status**. When connected:
353+
354+- DMs from the paired user become prompts in the **same** session you're typing in, so you can continue a conversation from the terminal on your phone and back again.
355+- Messages you type in the TUI are mirrored into the Telegram thread prefixed `you: …` and the assistant's replies come back prefixed `zot: …`, so the Telegram chat stays a complete record of both sides of the conversation.
356+- Messages sent from Telegram show up as your own bubble in Telegram (no mirror) and the assistant's reply to them comes back bare (no prefix).
357+- The status bar shows a `· tg ·` tag while the bridge is active.
358+- `/telegram connect` / `/telegram disconnect` / `/telegram status` (or `/tg`) also work as direct commands without the picker.
359+
360+The in-TUI bridge refuses to start while the standalone daemon (below) is running, since two concurrent long-poll consumers of the same bot race on every update and silently drop messages.
361+
362+### Standalone daemon
363+
364+For headless servers or long-running bots unattached to a TUI:
349365
350366 ```bash
351367 zot telegram-bot setup # paste a BotFather token, verify, save
@@ -345,7 +345,23 @@ See [docs/skills.md](docs/skills.md) for the frontmatter fields, authoring tips,
345 345
346 ## Telegram bot (bridge)346 ## Telegram bot (bridge)
347 347
348-zot can run as a telegram bot so you can DM it from your phone. It's a built-in subcommand, not a plugin:348+zot can run as a telegram bot so you can DM it from your phone. Two ways to run it: **from inside the TUI** (the running session mirrors into Telegram) or **as a standalone background daemon** (a headless bot with its own independent agent).
349+
350+### From inside the TUI
351+
352+Type `/telegram` in the running TUI to open a picker with **connect**, **disconnect**, and **status**. When connected:
353+
354+- DMs from the paired user become prompts in the **same** session you're typing in, so you can continue a conversation from the terminal on your phone and back again.
355+- Messages you type in the TUI are mirrored into the Telegram thread prefixed `you: …` and the assistant's replies come back prefixed `zot: …`, so the Telegram chat stays a complete record of both sides of the conversation.
356+- Messages sent from Telegram show up as your own bubble in Telegram (no mirror) and the assistant's reply to them comes back bare (no prefix).
357+- The status bar shows a `· tg ·` tag while the bridge is active.
358+- `/telegram connect` / `/telegram disconnect` / `/telegram status` (or `/tg`) also work as direct commands without the picker.
359+
360+The in-TUI bridge refuses to start while the standalone daemon (below) is running, since two concurrent long-poll consumers of the same bot race on every update and silently drop messages.
361+
362+### Standalone daemon
363+
364+For headless servers or long-running bots unattached to a TUI:
349 365
350 ```bash366 ```bash
351 zot telegram-bot setup # paste a BotFather token, verify, save367 zot telegram-bot setup # paste a BotFather token, verify, save

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 477

↑↓ moveenter openesc close