Changed
Auto-self-update now runs before the container update check
Only relevant if AUTO_SELFUPDATE=true — default behaviour unchanged.
Before: the scheduler tick would (1) check all containers, send 5 updates [Update all] to Telegram, (2) then auto-self-update mid-conversation. The bot died while the user was still tapping buttons, and the check itself ran on the old code.
After: self-update first, restart on the new image, then run the container check. The user sees one linear story:
"Starting self-update — your container update check will resume right after restart."
↓ (restart)
"✅ Restarted on the new version. Now checking your containers..."
↓
"5 updates [Update all]"
Carried across the restart by a /data/deferred_check.json marker (TTL 1h — stale markers silently discarded so a failed self-update doesn't loop).
docker pull amayer1983/docksentry:latest
docker compose up -d