diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-31 09:00:21 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-31 09:00:21 +0200 |
| commit | 2a52cb81744a55251dfd05cc1b2c4ee8dd311ebe (patch) | |
| tree | fa6e795cef14eb0df14950ed934f3a266cd108bb /tg_backup.bash-completion | |
| parent | bc909d9886e0c679fec1589734199de8873f9469 (diff) | |
| download | tg_backup-2a52cb81744a55251dfd05cc1b2c4ee8dd311ebe.tar.gz tg_backup-2a52cb81744a55251dfd05cc1b2c4ee8dd311ebe.zip | |
feat: refuse to back up a different chat into an existing archive dir
last_id is a high-water mark for one specific chat. Applied as min_id to
a different one it silently skips that chat's history and the run still
reports success. Compare the requested target against the one saved in
state.json and exit before any network work when they differ.
The comparison is textual, ignoring case and a leading @; resolving a
username to its numeric ID would need a logged-in client, so switching
between the two forms of the same chat also refuses. --force-target
overrides and keeps the existing resume position.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'tg_backup.bash-completion')
0 files changed, 0 insertions, 0 deletions
