Repository navigation
Tags
Tags
fix(history): batch getHistory requests instead of one RPC per message ( #249) The messages iterator's default batch size is 1, so `tg history --limit N` issued one messages.getHistory RPC per message. Larger limits became extremely slow (hundreds of round trips for a few hundred messages). Set BatchSize to min(limit, 100): Telegram does not reject a per-request limit above 100 but silently returns fewer/incorrect results, so 100 is the safe maximum. Clamp to at least 1, since a non-positive batch size panics the iterator (it preallocates a slice with that capacity) and a negative --limit would otherwise crash the process. Co-authored-by: Yago Pérez <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
feat(session): store session in macOS Keychain by default (#248) Add a sessionStore abstraction so session read/exists/delete go through a single seam, with two backends: a file (existing behaviour, used off macOS and when keychain is disabled) and the macOS login Keychain via the `security` CLI (no cgo, keeps the static binary). Keychain is the default on macOS; set `keychain: false` to opt out. An existing file session is migrated into the Keychain on first use and the file is removed; logout clears both. Co-authored-by: Yago Pérez <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
v0.4.0 - tg logout command - login --account auto-creates accounts (built-in creds) - mimic Telegram Desktop transport + init params (gotd/td v0.156.0) - inject built-in APP_ID/APP_HASH at release time - installable tg agent skill (skills/tg) - breaking: --test moved from a global flag to tg init / accounts add
PreviousNext