tgcli
tgcli copied to clipboard
Telegram user console client and archiver
Cleanup of the operations/command layer the warm-backend work produced — **no user-visible behavior change** (same output incl `--json`, same errors/exit codes). Addresses #49 and #43. ## Changes - **Invoke-first (perf).**...
## Philosophy We keep reinventing utilities (HTTP routing, time parsing, config, retry, locking) that mature, well-maintained packages do better and more safely. Prefer **modern, popular, actively-maintained, good-DX** packages (the way...
Two likely-legacy bits to investigate/remove: - **Dialog-cache seeding.** `seedArchiveInBackground()` (mcp-server.js) calls `messageSyncService.refreshChannelsFromDialogs()` → `telegramClient.listDialogs(0)`, iterating ALL dialogs (1358 on a large account) and upserting them into a `channels` registry at...
With `send` and backfill now running server-side (#48), the CLI no longer sees their progress/retry events — e.g. `send` FLOOD_WAIT retries and backfill progress happen on the server and never...
After routing all commands through the warm server (#48), `core/operations.js` (44 ops) has several smells to audit and fix: - **Boilerplate duplication.** `messagesGet` and `messagesContext` repeat the same `resolveSource` +...
## Problem `runBackfill` in `cli.js` (added in #41) carries a lot of orchestration inline: `ensureServer`, enqueue via the control client, the foreground poll-to-completion loop, progress rendering (respecting `--quiet`), the `--background`...
## Problem `core/config.js` hand-rolls config normalization + validation (~50 lines): `normalizeValue` (trim), `normalizeBoolean` (parse `true/1/yes/y/on`), per-key **alias** resolution (nested `mcp.host` / flat `mcpHost` / snake `mcp_host`), port coercion, per-section **defaults**,...
Hey @kfastov 👋 I ran your skills through `tessl skill review` at work and found some targeted improvements. Here's the full before/after: | Skill | Before | After | Change...
## Problem `messages search` without `--chat` only searches the local archive. There's no way to search across all joined chats for a specific text. This makes it impossible to find...
## Problem `groups members` only has `add` and `remove` subcommands. There's no way to list current members of a group or supergroup. ## Repro ```bash tgcli groups members --help #...