Group wallets, group passes, spending rules and admin-only settings.
- Groups recorded from my_chat_member; admin rights verified with
getChatMember and cached for five minutes
- Group context in entitlement resolution: group pass, group credits under
the spending rule (anyone, admins only, capped per person per day) and
the group's daily cap; refunds go back to the wallet that paid
- Group gate before any lookup: bot on or off, who may use it, allowed
and blocked sites, plus the owner's maintenance mode
- /settings with inline toggles checked on every press, /grouplang,
/autodetect, /allow, /block, /spending, /groupwallet, /grouppass,
/groupstats
- Deep links with the target pre-selected: paying for a group happens in
the private chat; a refused download in a group offers "Buy for me" and
"Add group credits"
- Optional link detection, tidy mode, default quality and language per
group; per-member usage
- /quality, /language, /app, /privacy, /terms, /support
- Remaining owner tools: /stats, /queue all, /user, /group, /ban, /unban,
/grant (passes and gift codes), /credit, /refund, /blocklist,
/broadcast with confirmation, /maint, /reload i18n
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Remote workers, Postgres and S3, all chosen by configuration.
- Pull-based worker protocol over HTTP: claim (long poll), heartbeat,
complete, fail, upload, source, probe. Workers need no inbound ports
- cmd/worker: standalone stateless worker with health endpoint and
scheduled yt-dlp self-update
- Per-worker bearer tokens, stored hashed, revocable; identity always
taken from the token; actions only on jobs the worker holds a lease for
- Tags: site_tags routes a site's jobs and lookups to workers that carry
the required tags
- Drain, /workers, /ytdlp update, and "core worker add|revoke|list"
- Link lookups can run on remote workers (PROBE_MODE), so the core needs
no yt-dlp and no residential address
- Postgres backend with pgx, same schema and queries; per-user advisory
lock and job row lock where SQLite's serial writes were relied on
- The whole test suite runs on SQLite and on Postgres
- S3 storage backend with presigned worker uploads, sharing a conformance
suite with the local backend
- Dockerfile with core, worker and faketelegram targets, docker-compose
with optional Postgres and local Bot API server, systemd units
- deploy/acceptance/kill-worker.sh: kills a worker mid-job and checks
that the other one delivers the file
- Fixes found on the way: /cancel could let the next playlist item start;
a refund note could be missing when the sweep refunded first
Docker was not available on the build machine: the compose files were
validated with "docker compose config" only. The acceptance scenario was
run with real processes.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>