3x-ui/.github
Hamed 7d45456feb
fix(tgbot): look up a Telegram account's clients through the indexed client table (#6887)
Every bot usage command and the hourly report resolved a Telegram ID by
expanding every inbound's settings.clients, re-parsing the matched inbounds and
looking up each client again by email. With thousands of clients this ran
thousands of times per report and showed up as high PostgreSQL CPU, and an
account whose lookup came back empty was retried once per client carrying it.

The lookup now uses the normalized clients table and its Telegram-ID index in
one query per account, and the hourly pass checks each account once. Bot output
and thresholds are unchanged; link callbacks now authorize against the current
client records instead of possibly stale settings JSON.
2026-10-24 05:55:19 +02:00
..
claude fix(frontend): remove unused MSW browser worker (#6859) 2026-10-17 22:09:48 +02:00
ISSUE_TEMPLATE fix(ci): resync the bot prompts with the repo and close the gaps an audit found 2026-08-17 02:41:21 +02:00
workflows fix(tgbot): look up a Telegram account's clients through the indexed client table (#6887) 2026-10-24 05:55:19 +02:00
dependabot.yml Security hardening: sessions, SSRF, CSP nonce, CSRF logout, trusted proxies (#4275) 2026-05-13 12:52:52 +02:00
FUNDING.yml chore(github): overhaul issue and PR templates 2026-05-24 22:14:28 +02:00
pull_request_template.md chore(github): overhaul issue and PR templates 2026-05-24 22:14:28 +02:00